- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 12:46 PM
I am using an inbound action to parse the body of the email. I have done this fine for strings and where the name of the name/value pair is one word. However, I am unable to figure out how to parse it when the name is separated by a space.
Two questions:
1) How to parse where name has spaces?
2) How to insert into a Date type field?
Email Example
<Body>
Pricing Effective: 04/11/2017
</Body>
Inbound Action Script
current.u_my_custom_date_field = email.body."Pricing Effective";
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2017 01:08 PM
Ignore the previous one.
The Date format should be same as system date format
var mydate = email.body_text.indexOf('Pricing Effective: ');
var gDate = new GlideDate();
gDate.setValue(mydate);
gs.info(gDate);
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2018 12:57 PM