Creating an INC and INC Task using flow designer

sailor_moon
Tera Contributor

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!

1 ACCEPTED SOLUTION

RAMANA MURTHY G
Mega Sage
Mega Sage

Hello @sailor_moon ,

Please look at below screen shot

Screenshot_20240207-103207.png

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

View solution in original post

8 REPLIES 8

Sujit Jadhav
Tera Guru

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.

 

Ayushi12
Mega Sage

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.

Amit Verma
Kilo Patron
Kilo Patron

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


Please mark this response as correct and helpful if it assisted you with your question.

RAMANA MURTHY G
Mega Sage
Mega Sage

Hello @sailor_moon ,

Please look at below screen shot

Screenshot_20240207-103207.png

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