ConnectWise Control Software User Forum
»
Default
»
Advanced Customization
»
Changes to AddEventToSessions method for Additional General Info extension clones
 Rank: Administration Medals:  Joined: 3/28/2014(UTC) Posts: 2,862  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 |
|
|
|
ConnectWise Control Software User Forum
»
Default
»
Advanced Customization
»
Changes to AddEventToSessions method for Additional General Info extension clones
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.