Hey @Miles11!
This actually strange, and I do not see how that is possible unless your email gets triggered on a different automation (e.g. when the rich text field is not empty, or when it is updated).
However, you might want to explore including some sort of "Output.set()" on your script, and using the value obtained from such output on the body of the email -rather than the actual data from the updated field.
Please let me know if this is somehow helpful, or otherwise feel free to provide further context.
Best,
Mike, Consultant @ Automatic Nation
The problem is not the actions running out of order. That is why adding a delay does not fix the issue.
The send email action is getting the field value from when the automation was triggered, not the value when the action is run.
There are two basic solutions. Pick whichever makes the most sense to you.
- Do a fresh read of the record after the script executes with a “find records” action. Grab the field value from the “find records” action, not the trigger.
- Have your script output the value using output.set(). Use the value outputted by the script in your email.
Hey @Miles11!
This actually strange, and I do not see how that is possible unless your email gets triggered on a different automation (e.g. when the rich text field is not empty, or when it is updated).
However, you might want to explore including some sort of "Output.set()" on your script, and using the value obtained from such output on the body of the email -rather than the actual data from the updated field.
Please let me know if this is somehow helpful, or otherwise feel free to provide further context.
Best,
Mike, Consultant @ Automatic Nation
Hi @Mike_AutomaticN
Thank you, using output.set() in the script was the method I tried and makes much more sense in this context.
Thanks for your help!
The problem is not the actions running out of order. That is why adding a delay does not fix the issue.
The send email action is getting the field value from when the automation was triggered, not the value when the action is run.
There are two basic solutions. Pick whichever makes the most sense to you.
- Do a fresh read of the record after the script executes with a “find records” action. Grab the field value from the “find records” action, not the trigger.
- Have your script output the value using output.set(). Use the value outputted by the script in your email.
Hi @kuovonne ,
Thank you, so helpful! Have a better idea now how these things work in AT
xMiles