How to call the BDM API through AJAX from JavaScript Expression in UI Designer?

Hi,
I am using Bonita version 7.7.4.

I want to call the BDM API from the** Javascript Expression** through AJAX to get the specific data through query if a specific field is selected.

For now, I am doing this by creating a variable of External API in the UI Designer to get all the data from BDM in those variables.

Looking forward to an answer.

Any External API variable basically makes a “GET” REST API request and stores the result.

It is usually a bad practice but if you want to make some REST API call directly in a JavaScript expression then you will need to use regular JS features to do so as Bonita does not provide a specific SDK for this.

HIH,