priority lookup issue

tGhadage
Tera Contributor

hi guys, 

 

have another condition when if the mail is mine and subject line is (testing please ignore) then create an incident to p2 but In the priority lookup table as shown below the when the urgency is 3 and impact is 1 priority is set to 2.

 

Screenshot (286).png

but when the in the script i have set the same values but still its showing the priority is as 4. ( its not commented ignore it )

script is shown below: 

Screenshot (287).png

and incident record that got created is also shown below:

Screenshot (288).png

can someone please help!! 

 

Thanks!

5 REPLIES 5

What debugging did you do? Does the code for example reach:

    } else if (email.origemail.indexOf("Tushar.Ghadage@latticesemi.com") > -1 && email.subject.indexOf("Fw: GL   Workbench New Extract Refresh Failed") > -1) {
 
That looks the only part where urgency and impact are set, so if that is not reached this won't work.
 
And why is priority set here, shouldn't that come from the lookup?
current.impact = 1;
current.urgency = 3;
current.priority = 2;

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn