- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 12:41 AM - edited 04-07-2025 12:44 AM
I have a catalog item that triggers subsequent catalog tasks if the user selects the options.
We’d like to add inbound email as a trigger for this catalog item. What’s the easiest way to parse the email and create an RITM?
My Email sample:
Subject: Onboarding Request for: John Doe
Body:
FirstName: John
LastName: Doe
StartDate: 04/10/2025
EmployeeNumber: 0001345
Include access to System1: Yes
Include access to System2: No or Null
Include access to System3: Yes
Include access to System4: No or Null
A flow is already created where each checkbox triggers a specific SCTASK. How can I incorporate inbound email into this catalog item, especially to handle the checkbox selections?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 01:29 AM - edited 04-07-2025 01:50 AM
Hi @symonflores_23
You can use the custom flow action to parse your email body as key / value pairs. PFA XMl of update. You can review that and use that/create one similar to that as required.
I just tested out by sending one email and it's working as expectd. PFB the output.
1. Commit the attached update set. Note: I got this from the community. Thanks to the person who created this.
2. Create a flow with trigger type as "Inbound email"
3. Use the custom action - Parse email body text by passing the email record from the trigger.
4. Set local flow variable values with the parsed value from eamil body.
Note: In this step, you need to Transform function - Get item from Name/Values.
Here the key value should be as same as the key value from the email body.
5. Use Submit catalog Item Request action to submit the request by assigning the flow variable values to the catalog item variables.
Result:
Sample email:
Flow output:
Make sure that the email body template must be static otherwise this solution won't work.
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 02:04 AM
Thank you for marking my response as helpful.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader