Forum Discussion
ckattookaran
VIP
Cosimo
It can be used if, let's say, there is a history app and you need to pull People Planning data. I cannot think of a different scenario at the moment.
Source session info is the current app you are logged in to, and you are now generating destination session info using this command. Anything you need from the destination, use the destination session info.
Dim objOpenAppResult As New OpenAppResult()
Dim siDest As SessionInfo = BRApi.Security.Authorization.CreateSessionInfoForAnotherApp(si, "OneStream_GolfStream_v44",objOpenAppResult)
Dim objDBWheres As New List(Of DbWhere)
Dim objDBWhere As New DbWhere("RegisterID",DbOperator.IsEqualTo,"E000204")
objDBWheres.Add(objDBWhere)
Dim objScnWhere As New DbWhere("WFScenarioName",DbOperator.IsEqualTo,"BudgetV1")
objDBWheres.Add(objScnWhere)
Dim strFirstName As String = BRApi.Database.LookupRowFieldValue(siDest, "App", "XFW_PLP_Register", objDBWheres, "FirstName","")
BRApi.ErrorLog.LogMessage(si, strFirstName)
siDest.CloseApplication()
ckattookaran
3 years agoVIP
Of course, I didn't see the other replies. 🤣🤣🤣
Related Content
- 3 months ago
- 8 months ago