- 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
Thank you
G Ramana Murthy
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 05:30 PM
@sailor_moon : Use the data pill option for the incident field, and select the incident record from step 2.
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 05:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 07:07 PM
Hello @sailor_moon ,
Try
var numbe = fd_data.create_task.number
Return numbe
In script action, try above script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 07:05 PM
In the screenshot you provided, it looks like you are updating an incident, rather than generating a new one. It's a bit unclear on what is going on in step 1 and 2 of your flow, but I think those hold the key to your problem.