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. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

Dr Atul G- LNG
Tera Patron
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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ 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.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

Dr Atul G- LNG
Tera Patron
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.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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