Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

inbound action

tGhadage
Tera Contributor

hi guys , 

if (email.subject.indexOf("Escalation: High") && email.recipients.toLowerCase().indexOf("test@test.com") > -1) {
            current.impact = 2;
            current.urgency = 2;
            current.priority = 2;
        } 
 
this code is not creating p2 incidents its creating p3. 
 
Thanks!!
15 REPLIES 15

HI @tGhadage  

 

Please check my comments once. 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron

Hi @tGhadage  

 

It will create P3 only. Bcz once the form is loaded with script values after that the Priority look up run and that change it to P3. ( This is OOTB)

 

AGLearnNGrow_0-1718218891483.png

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Yes, same the applied but no progress.

Hi @tGhadage  

could you please remove 

current.priority = 2;

from script and then test.

 

@Sandeep Rajput  @AshishKM any thoughts.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron

Hi @tGhadage  

 

It will create P3 only. Bcz once the form is loaded with script values after that the Priority look up run and that change it to P3. ( This is OOTB)

 

AGLearnNGrow_0-1718218891483.png

in this case, please set only Impact and Urgency and priority will be set by lookup only.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************