Skip to main content

Command Palette

Search for a command to run...

Invoke External Authenticated APIs from VB Studio Application Extensions – Part 2

Updated
1 min read
Invoke External Authenticated APIs from VB Studio Application Extensions – Part 2
S

The views, thoughts, and opinions expressed belong solely to the author, and not necessarily to the author's employer, organization, committee or other group or individual.

In our previous part we understood the concept of Local Server. Lets puts that to use here. The high level Steps would be

  1. Within your Extension the Backend Server would be marked as Local Server. This would solve the design time issue.

  2. In Fusion, Setup the Backend. This would solve the Runtime (Preview mode or during deployment) issue.

To demonstrate this I have a simple APP UI Extension which is invoking an OIC Endpoint and showing the response as notification.

Mark the Backed Server as “Local Server”

The Service Connection is based on a Backend which is marked as “Local Server“

With this the design time would work perfectly fine.

But at runtime i.e either in Preview mode or during deployment this would not work. We see this error in the console.

Setup the Backend in Fusion

Navigate to Setup and Maintenance and search for task “Manage Backends for Visual Builder Studio

Click on Create and enter the Details and Update.

You can get the Extension ID and Backend Name from the Service Connection.

Now with this setup the runtime i.e either in Preview mode or during deployment would work fine.

Happy Learning ☻