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
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
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 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!!