Conditional Check After Barcode Scan?

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.

Any help you can provide is appreciated. Thanks!

I think you can do this:

  • 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

1 Like

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.

Just searched for it, yeah we do have both (a component and an action).

1 Like