how can i check particular string in body of email inbound email action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2016 12:37 AM
Hi All,
I am using the below line to check the particular word is present in the body of email.
email.body.contain("Certified")
if Certified word is present then i need to update the status as Certified.
Am I using the correct keywords ? If not please help
Thanks
Pradeep D J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2016 12:47 AM
Hello Pradeep,
You can try this script like:
if(email.body.toLowerCase().indexOf("certified") != -1)
it means "certified" word has a valid array index and need to use "Certified" in lowercase like "certified".
Regards,
Souren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2016 03:02 AM
Condition is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2016 03:11 AM
Try 'body_text' instead of 'body' as suggested by Manoj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2016 04:21 AM
No Luck