on ‎2023 Dec 15 12:18 PM
Hi everyone,
I'm trying to consume some data from the BTP via destination in SAP BUILD Apps. So far I managed to create a destination on BTP, create a destination sap Build, configure the authentication and successfully test the connection. I receive the data from the backend. I also bound the data to the UI in sap build and I can see the correct values in the SAP Build UI Canvas. However, I can't get the data to show in the preview.So far I tried:

Also, what I don't understand is that I can see that when doing the GET request in the network tab the bearer token is undefined:

But the response returns a success and I can see the data in the responseText:

Did anyone have a similar issue?
Thanks!
Request clarification before answering.
SAP Build Apps is expecting a list but based on the response you are returning an object.
In the response mapper, enter something like this:
{ records: response.data.profiles, driverCode: response.status }
After testing, click Autodetect Schema from Response, and the app will recognize the scheme for the response.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi daniel.wroblewski
thanks for the reply. So far I can confirm the following:


Create a data variable based on this entity (REST or OData) -- your flow functions should be set up automatically, and in the logic for your variable, add an alert and make sure you can see your data
I believe I am making a mistake at this step. My flow looks like this:

As you can see the I can't bind any values as they are incompatible:

What I don't understand is that I can see the data in the SAP BUILD Canvas when I use the formula:

But the value is undefined in the preview.
Any help would be much appreciated.
Thanks!
Damir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's tough to tell without seeing the entire flow you set up, but it should go something like this:
Feel free to add more about your set up, plus screenshots, and where the data stops appearing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.