Forum

Jennifer Häfner
Moderator
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
    Has successfully completed the online course Advanced (310)
    Has successfully completed the online course Advanced (320)
    Has successfully completed the Intermediate Certification
    Has successfully completed the Advanced Certification
2 years, 10 months ago #35265
Up
1
Down
::

Unfortunately, we do not have an open and stable API call to read a connector’s endpoint at the moment.

What I suggest in your use case:

  • Write a Server-Side Business Object (SSBO) function that reads the current instance (as configured in the server environment settings)
  • In this function, use the SSBO System API to achieve get the active instance: Simplifier.System.getActiveInstance() (documentation). The returned object includes the type of the instance: Custom, Develop, Quality, Production
  • Based on this type, return the respective endpoint URL.
    You can find an example of using the SSBO System API in this video of the Advanced Course on SSBOs: https://community.simplifier.io/system-api/
  • In your client-side calls, use this SSBO function to fetch the endpoint URL depending on the active instance. Then, use the retrieved URL in the further process

This way, you only have to define the required endpoint URLs once in a SSBO function. I hope this approach is suitable for your use case.