on 2022 May 25 9:18 PM
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
Request clarification before answering.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
54 | |
6 | |
6 | |
5 | |
5 | |
5 | |
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.