
Announcements
I have a simple app with an input field, a button, and a gallery.
I'm going to simplify the functionality a bit here, but the overall idea is covered.
My gallery has these columns:
My button has the following OnSelect:
Collect(colResponses,{Input:input1.Text,Status:"Waiting..."});Reset(input1)Once an item has been added to the collection, I would like to run a workflow on the input and update the status once the workflow is done.
But how can I automaticaly run a workflow in the context of the gallery item?
The user might quickly add three items to the collection, starting three individual workflows.
I can call the workflow from within a patch function, which will update the item once run, but how do I trigger an individual run for each item individually?
I tried to trigger it from the button, but then the button waits for the workflow run to resolve.
So is there a way I can trigger a workflow once a gallery or collection item is created?
Edited to highlight I want the flow to trigger automatically. I don't want a button to trigger the flow.
I will add, I tried solving this by adding an autostart timer, with an OnTimerEnd event that starts the workflow with a Patch if the status is "Waiting...". This seems to work, but if two items are added in quick succession, one will not get correctly updated with the flow response.