Hello! I’m unable to figure out how to perform a conditional check upon a scan since the workflow editor will only allow conditionals at the action origin. The desired flow is: Person scans barcode, system looks up that scanned ID in a table and compares value: If X do this, if not, do this. Screenshot shows how the scanned action can only be placed after the conditional.
Add a webhook workflow and build the logic above there, plan ahead by having a query step to query the scanned barcode value that you will send over, and reference that in your conditions.
Go back to the scan barcode chain of actions, add a step to trigger the webhook workflow, and send over the scanned barcode value through the body/query params.
Thank you. Your suggestion was a little above my head but I was able to figure out a way forward by first calculating the condition in a table, creating a relation to that, and then referencing that relation in the conditional at the beginning of the workflow. This video was helpful for those who need it: https://www.youtube.com/watch?v=A0pe7gGZVrw&ab_channel=GRUMO
Is the “scan barcode” action a part of that workflow, or can you configure a scan barcode component separately?
Honestly I haven’t built many apps that use barcodes, my assumption based on your comment is we can have a scan barcode component which triggers a workflow.