Question
Workflow notification emails are sent to the
...
Quote submitter when a
...
Quote is approved or denied. Is it possible to send the email to the
...
Quote creator instead?
...
hidden | true |
---|
...
Answer
You can send an email to the creator from the workflow logic:
Code Block |
---|
def u = api.find("U", Filter.equal("loginName", quote.createdByName))
def userEmail = u.email[0]
api.sendEmail(userEmail, "subject", "email text") |
Then disable sending notifications on step approval/denial in the Workflow Notifications configuration section so that emails are not sent to the submitter.