For my pre-order automation one selects whether it’s pickup or delivery. There are things that need to happen that require an active ticket.
The create ticket action works fine, but anything else after it fails the first try. Below is just a basic automation that creates a ticket and adds a ticket tag (doesn’t tag on the first try, works on the second):
I’ve tried passing off to an automation command after create ticket action and the automation command executes before the create ticket action (according to the rule debugger). I added a 1s delay to the automation command and although the debugger shows the automation command as being executed after the create ticket action, nothing else seems to change the ticket (even though the rule debugger shows all rules and actions executed). Subsequent execution of the automation works like a charm just like illustrated above.
Is there a different way to approach this? Thanks.
I am curious why the create ticket though. Have you tried just adding a ticket tag? Define the ticket tag but don’t map it then use automation to apply it.
I would love if you could share that automation for the datetime picker. It doesnt have to be a tutorial if you dont have time. I can build the tutorial if you can share it with me. I may be able to tweak it and make it match SambaPOS look and feel.
So I did some testing for you and you can definitely use the Ticket Created event to apply the ticket tag. Maybe you should use a state flow after ticket created to constrain Ticket Created rule event so it applies the ticket tag when you need it to.
Easiest method would be use a specific Ticket Type for your project and constrain the ticket created rule even for only that ticket type.
THe problem I run into using ticket type is there is a pickup and delivery department with two different menus and some item prices are different. If one is in the pickup department and selects delivery as the pre-order it will switch to delivery department, ticket, and menu.
There’s got to be a way; I just have to find it. I’ll see if setting the pre-order state after the create ticket action and see if that is set for the ticket created action to see. Thanks for your input; I appreciate it.