Bonita with Core


Does Bonita supports to connect to Core Web API?
I'm trying to bind dropdownlist on a form from external api but its not displaying anything.
display and return keys are correct

2 answers

This one is the BEST answer!

I got the problem, the API was not allowing CORS, once enabled it works fine with bonita


I guess that " Core Web API" are REST API that you can call using HTTP requests.

If you confirm that you should be able to call such API from your forms and pages created with the UI Designer using a "External API" variable (that will perform a GET request on the API) or use a "Button widget" to perform GET, PUT, POST and DELETE requests.

Also an alternative would be to create a REST API extension that can act as a proxy calling your APIs.

If you have any publicly available APIs I can try to provide an example.


Submitted by moh_farrag_1366291 on Wed, 09/12/2018 - 11:21

I'm using External API variable, I traced the requests on fiddler, I can see the request of my api with its response, but results are not shown on dropdownlist.
I changed the api to another ASP.Net api (not core) result bind successfully

Submitted by antoine.mottier on Wed, 09/12/2018 - 11:26

So I guess this is related to the structure of the answer to your REST API call. Maybe you need to transform it using for example a JavaScript variable before bidding it with the widget.