Forum Discussion
ChristianW
Valued Contributor
If you like to use it in an ud8, I would suggest, that you are storing the si of the other application in globals:
Dim otherAppName as string = "OtherApp"
Dim siName As String = "SI_" & otherAppName
Dim oSi As SessionInfo
SyncLock globals.LockObjectForInitialization
oSi = globals.GetObject(siName)
If oSi Is Nothing Then
Dim oar As New OpenAppResult
oSi = BRApi.Security.Authorization.CreateSessionInfoForAnotherApp(si, otherAppName, oar)
If oar = OpenAppResult.Success Then
globals.SetObject(siName, oSi)
else
brapi.ErrorLog.LogError(si, XFErrorLevel.Error, "Si creation failed")
End If
End If
End SyncLock
miked
3 years agoContributor
thx Christian. Will do. It's a great tool to compare data between 2 apps (like dev/uat). Will start to test out shortly. thx.
Related Content
- 3 months ago
- 8 months ago
- 4 years ago