- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 12:13 AM
Hi Community,
I have a requirement where - 'If system receives an email through inbound email action then the instance email id is stored in the Recipients (String field) field by default.
How to remove the instance email id from Recipients field. What script needs to be used ?
In the above screenshot, Out of 4 email addresses we need to remove the first one which is the Instance email address. How can we remove that particular email address for all the inbound emails that system will receive ?
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 12:39 AM
Is there any business requirement? if yes then you can use below logic as an example
You can write before insert business rule on sys_email table where you can trim the instance email id from recipients table
var curr = current.recipients;
current.recipients = curr.replace(curr,"instanceemail","");
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 03:08 AM
var curr = current.recipients;
current.recipients = curr.replace("instanceemail","");
The above script works fine for removing or trim the instance email id from field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2022 09:39 PM
Hi
Thanks & Regards,
Vasanth