Hi Mark,
Please try using the function getSessionByID to get the current session information, which includes the server ID. Please refer to the article below for details:
https://docs.appeon.com/ps2020/workarounds_and_api_guide/ch04s01s04.html
For example, the script below for .net server:
AppeonDotNetComponent lnvo
any la_l[]
long ll_ret
string ls_clientID
ls_clientID = appeonGetClientID()
la_l[1] = ls_clientID // actually, can be empty and this will mean "take current session ID"
la_l[2] = ""
lnvo = Create AppeonDotNetComponent
lnvo.ComponentType = "4"
lnvo.TypeLib = ""
lnvo.ClassDescript = ""
ll_ret = lnvo.of_ExecInterface ("getSessionByID",la_l)
If ll_ret = 0 Then
MessageBox("Get session info successfully.", "Session info: " + string(la_l[2]))
End If
Regards,
ZhaoKai