logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mattsteele8  
#1 Posted : Thursday, March 10, 2011 10:50:54 AM(UTC)
mattsteele8


Rank: Member

Joined: 3/10/2011(UTC)
Posts: 11
Location: UK

Hi,

I work in the IT sector and we have an Access 2007 database that runs our business.

On our database we have a case list for support cases opened for our clients.

I currently have a button that, when clicked, will open the host page of screen connect and copy the case ref. number from the database so that it can be pasted into the invitation code on the site.

I would like to remove a step and have the database create the session automatically.

Is there some way that this can be done either by a script, query string or command line etc.?

Any help would be great

mattsteele8  
#2 Posted : Thursday, March 10, 2011 12:04:54 PM(UTC)
mattsteele8


Rank: Member

Joined: 3/10/2011(UTC)
Posts: 11
Location: UK

UPDATE:

I managed to mutilate someone elses code to do a similar thing to what i was looking for but now i would like to be able to auto join this session too. the code that i am using is below

<%@ WebHandler Language="C#" Class="CreateSession" %>

using System;
using System.Web;

public class CreateSession : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
var sessionCode = context.Request.QueryString["Code"];
var Username= context.Request.QueryString["UserName"];

using (var sessionManager = Elsinore.ScreenConnect.ServerExtensions.SessionManagerChannelFactory.CreateChannel())
{
sessionManager.CreateSession(Elsinore.ScreenConnect.InvitationType.Code, sessionCode, Username);
}

context.Response.Redirect("Host.aspx");
}

public bool IsReusable { get { return false; } }
}
Jake  
#3 Posted : Thursday, March 10, 2011 12:45:08 PM(UTC)
Jake


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 4/9/2010(UTC)
Posts: 2,061

Thanks: 1 times
Was thanked: 393 time(s) in 188 post(s)
Check the other thread for a response:

http://forum.screenconne...sion-screen-connect.aspx
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.