OSCommManager
Visitor II

Question (cont)

For example, in a single snippet, I can see references to si, api.si and api.DBConnApp.si but it is not clear why each is needed.

 

Answer

  • There is no specific documentation regarding the various si (session info) calls.
  • The session info can be retrieved in many ways, typically using syntax such as “si” or “api.si”. The session info object is commonly required when calling BRAPI functions as every BRAPI function uses the session info object as the first argument in the function.
  • The easiest ways to retrieve the session info in a rule is to pass in “si” as this is typically declared in the function header. If not, “api.si” is the second easiest option.
  • Be aware that a lot of business rule examples are created using various other examples/snippets.  Therefore, it is possible that different calls are being used in the same rule to achieve the same outcome/retrieve the same information.

 

Source:  Office Hours 2021-05-13 - Partner Enablement  

Version history
Last update:
‎09-14-2023 08:44 AM
Updated by: