Using values from queries in a normal API in a include or execute action

I think I saw a “how to” somewhere in the past on this. I want to get values from front end page data and then use the values in a Library server action.

Screenshot 2022-09-08 at 13.24.50

Would I just add a $_PARAM variable in the library action and when adding the lib server action you would use this to “grab” your value from the normal API?

What kind of data is that/where does it come from? How do you post it to the server action?

I would add a $_GET var in server action and then when added on the front end page give it a value based on a var on the page. I want that $_GET var to be used in the library server action added to the api server action.

Please check the docs explaining how to setup and use the input params for your library items:

1 Like

Followed the tutorial, created the lib action and added a param var + used it as the condition in a query. Then added as execute action in a api action, but the param does not show in properties

I can’t recreate this issue. Added the same steps and param as you - the param appears when i add the library action as an exec step.
Maybe try resaving the library item/recreate the server action/restart wappler.

1 Like