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
Scott  
#1 Posted : Monday, February 25, 2019 4:39:07 PM(UTC)
Scott


Rank: Administration

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

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

Thanks: 3 times
Was thanked: 351 time(s) in 303 post(s)
In version 19.0/7.0 we've changed the prototype for the addEventToSessions method as implemented on the Host page. There are a number of users who have cloned the 'Additional General Info' extension in order to retrieve and display custom information and these clones will need to be updated for this prototype change.

Previously, the Extension invoked the method with:
Code:

function sendCommand() {
	window.addEventToSessions(
		window.getSessionGroupUrlPart()[0], 
		SC.types.SessionType.Access,
		[window.getSessionUrlPart()], 
		SC.types.SessionEventType.QueuedCommand, 
		null,
		getInputCommand(
			"General"
			),
		false,
		false,
		true
	);
}


As of 19.0 this should be updated to something similar to:
Code:

function sendCommand() {
	window.addEventToSessions(
		SC.pagedata.get().SessionGroupPath, 
		SC.types.SessionType.Access,
		[window.getSessionUrlPart()], 
		SC.types.SessionEventType.QueuedCommand, 
		null,
		getInputCommand(
			"General"
			),
		false,
		false,
		true
	);
}


The only change to note is that the first parameter now expects the SessionGroupPath entirely, which can be retrieved from the pagedata.

Please keep in mind that making any changes to a Private extension will require that the Extension be signed again.
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.