Please help with setSubject in email script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 02:00 PM
Hello,
I'm attempting to overwrite the email subject using an email script, but I'm unable to make it work. Please advise.
Here is what I have tried:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:05 PM
Hello,
Please discard my answer. I was able to figured out how to get it to works.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:30 PM
I did not use any table in the email script. Here is what I did and it works. I hope someone in the community can use it if there is a need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 10:37 PM
Email scripts are always invoked from the "Email Notification," and within the email notification, we need to select the relevant table.
So when we use the "current" keyword in the email script, it refers to the context of the table we've chosen in the notification.
To clarify, the original question didn't specify which table this email script was called for. so it was difficult to guide.
As you mentioned the above script works, that defines your email notification in on "sc_req_item" table as you are fetching the details from RITM.
Please mark it helpful if it has answer your query!