Executing sequences from LUA

I want to launch a sequence from LUA code and found this documentation

Execute a subsequence without variables

subsequence = variable("Subsequence")

How do I get the subsequence.id to pass to this code?

Couple of ways you could try

  • Use the WebApp API to get all sequences and then filter the one you want. Sequence id will be in the JSON top-level of each Sequence object.

  • In the Web App Sequences tab select your Sequence and then press the toggle celery script view button (adjacent to the Settings :gear: symbol and the “id”: you need is at the top.

Screenshot from 2024-05-27 16-51-57


Nice. The celery script is an easy way to get it.