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
miels  
#1 Posted : Thursday, July 9, 2015 12:35:09 PM(UTC)
miels


Rank: Newbie

Joined: 7/9/2015(UTC)
Posts: 3
Netherlands

We offer support for certain software, and we have a web based support tool in which we register tickets for customers. Btw: this tool is for internal use.

I'd like to add an "Invite for remote support"-button/link in our tool to facilitate our support employees. When an employee clicks on this button the following is supposed to happen:
  • Our Screenconnect Host-website should open
  • a new support session is being created (with a certain name which I'd like to pass as a parameter in the URL)
  • the customer instantly gets an invitation via email (to an address I'd also like to pass via the URL)
  • "join now" should be activated.


Is this possible?

Alexander  
#2 Posted : Thursday, July 9, 2015 10:22:52 PM(UTC)
Alexander


Rank: Administration

Medals: Level 3: Shirt off your back! Received 25 Thanks!

Joined: 7/23/2013(UTC)
Posts: 715
Man
Location: Raleigh, NC

Was thanked: 66 time(s) in 63 post(s)
Hmm, just pulling stuff from Host.aspx, I think this would work (with the url format being: yourscreenconnectinstance.com/Host?name=adfssdfsa&email=whatever@adfsasfd.com)

Create an extension and put this in Initializer.js:
Code:
SC.event.addGlobalHandler(SC.event.PreRender, function () {
	var queryStringMap = SC.util.parseQueryString(window.location.search);
	if(!queryStringMap.name || !queryStringMap.email)
		return;

	SC.http.performWithServiceContext(SC.util.doesBrowserNeedSyncServiceContextForLaunch(), function () {
		SC.service.CreateSession(
			SC.types.SessionType.Support,
			queryStringMap.name,
			false,
			'',
			[],
			function (sessionID) {
				var url = SC.context.guestUrl + SC.util.getQueryString({ Session: sessionID });
				var emailSubject = SC.util.formatString(SC.res['InvitePanel.SupportEmailSubjectFormat'], SC.context.userDisplayName, url);
				var emailBody = SC.util.formatString(SC.res['InvitePanel.SupportEmailBodyFormat'], SC.context.userDisplayName, url);
				var isBodyHtml = SC.res['InvitePanel.EmailBodyIsHtml'] === 'true';
				SC.service.SendEmail(queryStringMap.email, emailSubject, emailBody, isBodyHtml);

				window.setSearchUrlPart(null);
				window.setSessionUrlPart(sessionID);
				window.setCommandNameUrlPart('Join');
				window.updateHashBasedElements(false);
				SC.pagedata.notifyDirty();
			},
			function (error) {
			}
		);
	});
});
ScreenConnect Team
miels  
#3 Posted : Friday, July 10, 2015 7:59:43 AM(UTC)
miels


Rank: Newbie

Joined: 7/9/2015(UTC)
Posts: 3
Netherlands

Thanks for the quick reply!
To facilitate others (or perhaps our future needs) it might be nice if you could extend this a bit, so the behaviour can be customized further by allowing:
- to choose the join mode via URL
- to enable or disable "Join Now" via the URL
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.