logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
charles.tsai  
#1 Posted : Friday, November 24, 2017 4:00:43 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Dear ScreenConnect Support,
We have developed our own .NET Windows Form Application and we are trying to integrate ScreenConnect in our workflow.

Is there a way we can utilize your .NET API to connect an existing session?

If so is there any API example we can follow?

Thanks,
Charles
Ben B  
#2 Posted : Tuesday, November 28, 2017 2:58:53 PM(UTC)
Ben B


Rank: Administration

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 10/2/2015(UTC)
Posts: 307

Thanks: 1 times
Was thanked: 63 time(s) in 58 post(s)
Originally Posted by: charles.tsai Go to Quoted Post
Dear ScreenConnect Support,
We have developed our own .NET Windows Form Application and we are trying to integrate ScreenConnect in our workflow.

Is there a way we can utilize your .NET API to connect an existing session?

If so is there any API example we can follow?

Thanks,
Charles


You may want to check out the code in a couple of the existing integration extensions available via the Extension Marketplace -- these extensions often implement service methods to return host/guest join URLs, so that sessions may be joined from third-party applications. Your custom .NET app would need to make a POST to either an existing PageService method or a custom extension method to return the desired join URL.

To view extension source code, install the Extension Developer extension, then select Develop -> View Files on an installed extension.

For example, check out the code in the Zendesk extension's CreateZendeskIntegratedSupportSession method in Service.ashx:

Code:
public object CreateZendeskIntegratedSupportSession(int ticketID, string currentUsername, string createCodedSession)
{
	AssertValidApiToken();
    ...

    return new
	{
		hostUrl = hostJoinUri.ToString(),
		guestUrl = guestInviteUrl,
		connected = session.SafeNav(_ => _.ActiveConnections.Where(__ => __.ProcessType == ProcessType.Guest).Any()),
		sessionCode = session.Code
	};

ScreenConnect Team
charles.tsai  
#3 Posted : Tuesday, November 28, 2017 5:18:36 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Dear Ben,
Thanks for the reply. I will definitely check the Market Place.

Sorry I just found that my question may not be clear enough...

I am wondering is there an example or API we can use for start the SC Client and join the session as guest (like java Client api) for .NET?

Thanks and hope to hear from you soon.

best,
Charles
Scott  
#4 Posted : Thursday, December 7, 2017 1:31:37 PM(UTC)
Scott


Rank: Administration

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

Joined: 3/28/2014(UTC)
Posts: 2,533
United States

Thanks: 3 times
Was thanked: 309 time(s) in 266 post(s)
This KB article has a detailed description of the Client Launch Parameters and their values. You can specify what type of session you want to join and of which connection type.
ScreenConnect Team
Scott  
#5 Posted : Wednesday, December 13, 2017 3:03:02 PM(UTC)
Scott


Rank: Administration

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

Joined: 3/28/2014(UTC)
Posts: 2,533
United States

Thanks: 3 times
Was thanked: 309 time(s) in 266 post(s)
To follow up, in theory you can prepackage the .application file and invoke it via clickonce, just be sure to pass the same parameters as you would in the webrequest.

To do this within a C# application, you would include the following:
Code:

[DllImport("dfshim", CharSet = CharSet.Auto)]
static extern void ShOpenVerbApplication(IntPtr hwnd, IntPtr hinstance, string lpcwstr, int dwflags);


And then invoke it similar to:
Code:

App.ShOpenVerbApplication(IntPtr.Zero, IntPtr.Zero, file://C:/something.application, 0);


This article might be useful.

I can't say that I've personally tried this so I'm not sure if it works, but other than this I can't think of a way to accomplish what you want.

Edited by user Wednesday, December 13, 2017 3:09:55 PM(UTC)  | Reason: Not specified

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.