Encountered this error while saving sales order th...
# suitescript
a
Encountered this error while saving sales order that has workflow that sends email to sales rep .
Copy code
{"type":"error.SuiteScriptError","name":"SSS_AUTHOR_MUST_BE_EMPLOYEE","message":"The author internal id or email must match an employee.",
but the sales rep assigned is an employee.. what could be the reason
n
Your message relates to the Author not the recipient...
If you want to send it from the system set the author to -5.
a
yeh i guess , a restlet script is executing the workflow
can i set system as email sender in workflow! didn't find any option here !
n
I don't know, maybe ask in suiteflow, I somewhat assumed you were using a workflow action script as you were asking in suitescript channel. I rarely create or modify workflows, not really my thing 🙂
did you select that "specific sender" radio button btw to ascertain the options in there?
a
yup , I selected that there is no option i guess. I just set a specific sender and problem seems to be solved . Error was showing up when i was creating a sales order with a script. Thanks alot for help 👍
👍 1
r
If you want it to be dynamic, you will need a custom field to store the author of the email and update the workflow action to get it from the custom field.