- 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
04-07-2025 01:04 AM
Hi @symonflores_23 ,
what you could do is making the creation of all the sc tasks into a subflow. Then you can use a main flow for the catalog item and another Inbound email flow to both use the subflow for sc task creation.
For the subflow keep in mind that you need to pass trough the input values to create those sc tasks (email answers and catalog variables). The tricky part is mostly trying to catch all the answers from the email into flow variables, that can be past trough the subflow.
This was an helpfull video for me around 3:20: Launch a #ServiceNow Catalog Item from Email via Flow Designer (LIKE A BOSS)
With this solution the subflow is your dynamic way to always make the same sc tasks.
Good luck! Kind regards,
Collin
- 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
04-07-2025 09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 10:19 PM
you can use inbound action and script and use Cart API to submit
Whenever you set the variable value you can parse the value and set the variable value for those checkboxes
Submitting a catalog item from an Inbound Action
Submit Catalog Item Through Inbound Email Action
another way is to use flow and check these links
Create RITM through inbound action by parsing mail body
https://pathwayscg.com/scripting-for-the-servicenow-cart/
Submit and close a catalog item request from inbound email -> response from Amit
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader