- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 04:14 PM - edited 02-07-2024 06:21 PM
Hi All,
I'm creating a flow designer wherein the trigger is inbound email that will generate an INC record once it received the email. My question is how can I get the incident number to populate the incident number in incident task table as well as the category and subcategory.
This is what I always got after running the testing
I tried to use a code
var incNumber = fd_data.trigger.inbound_email.incident;
return incNumber;
But it's also didn't work, please help me to resolve this. Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:03 PM
Hello @sailor_moon ,
Please look at below screen shot
You can select Incident number using data pill feature,
Plese mark my answer as helpful, if it helps you
Thank you
Please mark my answer helpful & correct if it helps you
Thank you
G Ramana Murthy
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 07:22 PM
Hello @sailor_moon
Try
var num = fd_data.create_task.number
Return num;
In script action, try above script
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 08:08 PM
Hi @sailor_moon,
Use data pills to store the incident number and update it in the incident task.
Refer:https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_lear...
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
02-06-2024 08:51 PM
Hi @sailor_moon
Is you flow responsible to create the incident or the incident is being created from Inbound email action ?
Thanks & Regards
Amit Verma
Amit Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 09:03 PM
Hello @sailor_moon ,
Please look at below screen shot
You can select Incident number using data pill feature,
Plese mark my answer as helpful, if it helps you
Thank you
Please mark my answer helpful & correct if it helps you
Thank you
G Ramana Murthy
ServiceNow Developer
