I'm a newbie in scripting, but enthusiastic learner 🙂
A little background to the request:
I have an automation that runs over a list of volunteers, some of them need training for their roles.
the list contains the dates of those who need training and uses OOTB actions to find which have training today: the automation checks each record, and if the date of the training is today, the automation sends a mail with the invitation link to the video training.
the problem: sometime, the automation doesn't succeed in sending the mail to specific volunteers.
the requirement: using script action, if sending the mail wasn't successful, to put the error message of current volunteer's into current volunteer's record, into "error" field.
Will appreciate the help on: