cancel
Showing results for 
Search instead for 
Did you mean: 

Relative path and query on Destination API REST in Build Apps

Jaimestrada
Explorer
0 Kudos
768

Hello experts,

i´m trying to connect a SuccessFactors API through SAP BTP Destination REST API Integration on SAP Buils Apps, however, i need to filter the URL to access to specific information of one employee, for example, I´m using the following URL: https://apisalesdemo8.successfactors.com/odata/v2/PerPerson, but I want to use data dynamically, adding something like this: "/PerPerson('123456')" where 123456 is the person id of some employee.

I configured the Rest API like this:

Then, in the list configuration, i can filter on Relative path and query as I explained before:

When i try to configure dynamically this section I don´t have another option, only static text and formula:

And, in the formula's options i can´t add any variable,

so, I need help to filter dynamically the information of that API,

Thanks.

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate

First, why do you use "list" if you are trying to get a single object?

In any event, we had a similar situation in our TechEd demo. We used the SAP Build Process Automation API where we wanted to get status information for a specific process instance.

So we defined the generic API in the base, but we also defined a variable in the request schema for the instance ID.

In the "Create record" action, we defined a formula for the relative path:

The formula was:

"/" +  query.record.spaidinput + "/execution-logs"

So now, when I have a flow function "Create record". In the configuration, I set the data resource to the data resource I defined above:

And if I click on "Custom object" I get to set the binding for the customer resource schema variable.

juanparedes5
Explorer
0 Kudos

Hi Daniel,

I hope no bother you, but I have a similar problema while I´m working with SAP BTP Destination REST API Integrastion, Can I contact you somehow to tell you about the issue? I posted an ask on SAP community but these Data entity generates me many errors.

Thanks.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Where is the post you mention in your comment? I'd prefer you summarize it it in a new Question -- this way everyone can get benefit of the answer (and whoever solves that issue will get recognition 🙂

If it becomes too complicated, we can find a different solution.