How to find out what sent an email? I identified w...
# ask-stanley-ai
a
How to find out what sent an email? I identified which template it is using but I can't tell if it was sent by a saved search, a workflow, a script, or something else like maybe someone ticking the To Be Emailed checkbox or clicking the Save And Email button.
c
AI generated answer (using internal Slack threads):
Based on the conversations, there are several ways to identify what sent an email in NetSuite: 1. Check with the person who usually sets up emails/scripts/workflows: This can be the quickest option if that person is available and has the necessary knowledge. 2. Download and search all script files: You can download all script files from your file cabinet and do a search of all files for
nlapisendemail
or
email.send
. This would show you if there's a script sending the emails. 3. Check workflows manually: This can be done by looking only at workflows related to the records that the emails are about. For example, if it's an email about sales orders, it would likely be a workflow on either transactions or customer records. 4. Check saved searches: Look for searches where there's an individual recipient and not just recipient from results. You can do a search of all saved searches which send any emails by filtering to
triggered = T
OR
scheduled = T
. 5. Check the Internet headers of the email: If you have access to the email, try opening the internet header and look for
X-MailingID:
and
X-NetSuite: c=XXXXXXX
. These lines will have a clue where the email is getting triggered from. 6. Check the Custom Form: Look at what email template you're using on the relevant Custom Form. See what's selected in the
print template
and
email template
fields. 7. Use Salto: Once you've got your saved searches being fetched in Salto, you can do a search for
FIELD_EMAIL_SUBJECT = "subject of email"
to find the search that is triggering it. You can also more generically search for
FLAG_(TRIGGERED|SCHEDULED)_ALERT = true
(regex search) to find all scheduled/triggered email saved searches. Remember, the method you choose will depend on your specific situation and the resources available to you. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.885132
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.866760314
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864135802
Please provide your feedback on this answer.