Expect your doing a new ticket, {TICKET ID} wont work till ticket is submitted/saved.
Try laying it away to a table reopen it and then change entity.
You will probably need to add a save ticket action in at the top on the rule actions.
If you want to use dat you can but you will need to do a two stage automation.
Execute automation command with date as the command value
That command triggers your existing rule and [:CommandValue] would be used in place of {DATE} in both actions.
I dont think using DATE twice will work as seconds are possibly going to change between them…
Unless you want to been a log of the .txt tickets you could just used a static file name in both as reprinting next ticket should overwrite. Just make sure file directory is local if using multiple terminals to avoud clashes.
Add a save ticket action and put it first in the list of actions on the rule.
Personally I doubt that entity changed would be the best place to trigger the rule anyway, what if you select wrong one…
Or if the entity were selected before completing the ticket and more orders added after selecting entity?
Why not of ticket close?
I add a save action but nothing done …
It creates the file but not with the ticket number but as {TICKET NO}.txt
The whole think is working, I just have to find a way to export the files with the proper name …
I get that, just questioning if its the best time to trigger the automation.
Before ticket closing with a constraint of deliverer entity name not equals ‘’
Solves save ticket action need and allows for multiple user flow sequences - entity first/entity last etc.
Email body does not support multiple lines it has to read all on single line. So this wont work. Your best bet unless we get more support from Emre would be to just use a file attachment.