cancel
Showing results for 
Search instead for 
Did you mean: 

Appgyver: how to pass url filter parameters in REST API

cristiano_santos
Participant

Hello all! I am woking in my Appgyver app for No-code challenge and I want to pass dynamic query parameters in an API. Here is an explanation:

I would like to use an REST API to search for an scanned barcode. The barcode scan works fine and the scanned results is displayed in a list bound to a data variable based on a 'on-device storage' data type (IMAGE 1).

Now I want to use barcodelookup API to read data from this barcode, as explained here

https://www.barcodelookup.com/api-documentation#endpoints

the API connection works fine in Appgyver data integration and I can set the schema (IMAGE 2)

But now I want to call the API and pass the barcode value I have read. But I can´t find how to pass parameters in logic tab. The Get Record logic does not have parameters (IMAGE 3)

And in data configurator, I can´t set a query parameter to a dynamic app variable (IMAGE4)

The question is, how can I pass dynamic query parameters to an api url? Here we have multiple query parameters
https://www.barcodelookup.com/api-documentation#endpoints

IMAGE 1

IMAGE 2

IMAGE 3

IMAGE 4

Accepted Solutions (1)

Accepted Solutions (1)

SergioG_TX
Active Contributor

in your image 2 - data folder, go to the BASE section on the left nav... from there you can set up the query string param.

in your GetRecord operation, in image 3, you will see the new query string param you set up on the prev step. assign the value to a variable so it is dynamic. I highlighted this step in my blog https://blogs.sap.com/2022/05/22/dadiambored-no-code-challenge/

cristiano_santos
Participant
0 Kudos

hi 9958e4b6df99431a84a41b015b639ac8 the problem was solved with your solution! Thanks!

With this solution I came across a new issue. Could you please read it? 😄
https://answers.sap.com/questions/13648115/appgyver-how-to-stop-rest-api-calls-done-automatic.html

Answers (1)

Answers (1)

maheshgonda
Product and Topic Expert
Product and Topic Expert

Hi Cristiano,


You can define optional url placeholder like following. We can also define query parameters at design time.



setting the placeholder values of the get call like following. Here selectedOption can be page/app variable.




In your case based on the endpoint you can use url placeholder and/or query parameter
I hope this is what you are looking for!!

cristiano_santos
Participant
0 Kudos

hi maheshgonda it worked fine with this solution! Thanks!

With this solution I came across a new issue. Could you please read it? 😄

https://answers.sap.com/questions/13648115/appgyver-how-to-stop-rest-api-calls-done-automatic.html