-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'd still appreciate some help on this fwiw! |
Beta Was this translation helpful? Give feedback.
-
Hello @aMacDawg, You can add another 'Update Field Value' action after your 'Execute Query' action and refer the result from previous action like so - {{ Action X.Query Result }} or {{ Action X.Query Result.data.[0] }} where X is the action step number seen in UI (1. or 2. and so on) Here you will find more documentation on these. |
Beta Was this translation helpful? Give feedback.
-
Hey @aMacDawg I've got an MS_SQL server set up with the rows from the BB sample data, and a query set to find all rows where first name is like "Suzy". You can then go one of two ways here - you could use an "Update State" action with the result of that query, and then use State to pass your query response wherever you need it. Or you can use the Update Field Value to add it to your form |
Beta Was this translation helpful? Give feedback.
Hello @aMacDawg,
You can add another 'Update Field Value' action after your 'Execute Query' action and refer the result from previous action like so - {{ Action X.Query Result }} or {{ Action X.Query Result.data.[0] }} where X is the action step number seen in UI (1. or 2. and so on)
Here you will find more documentation on these.
https://docs.budibase.com/docs/form-actions#update-field-value
https://docs.budibase.com/docs/chaining-actions#action-referencing