- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2020 11:14 PM
Hello Guys,
We have created the inbound actions to create the ticket when OTRS tool send an email to Servicenow but along with the mail the extra content is also updating in the ticket( see the print screen) i want to eliminate the extra content and to keep only the main content, i have written a code but no luck.
Can anyone guide me with this Please?
Thanks and Regards,
Prerana
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 05:39 AM
Hello Prenana, I tried with another approach and it worked:
var body = email.body_text;
var expectedTxt= body.split("Bitte denken Sie an")[0] ; // add your line here or keep 4 words
gs.log("expectedTxt: "+expectedTxt);
Thank You!
Abhishek Gardade
ServiceNow MVP 2020
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 05:39 AM
Hello Prenana, I tried with another approach and it worked:
var body = email.body_text;
var expectedTxt= body.split("Bitte denken Sie an")[0] ; // add your line here or keep 4 words
gs.log("expectedTxt: "+expectedTxt);
Thank You!
Abhishek Gardade
ServiceNow MVP 2020
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 06:07 AM
Thank you so much for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2020 06:06 AM
Thank you so much for your reply!
Thanks,
Prerana