Not understanding why this one line of code Not Working

Lucky1
Tera Guru

Hello all,

 

Because of some business need, we have in activated Priority look up rules on Incident.

Now I have written a BR, before - Insert and Update on Incident table and here is the script

Lucky1_0-1745392772689.png

 

I see that highlighted line of code is not executing, and I don't see the log message in the logs. Rest of all the log messages are coming up.

Can someone tell me what went wrong over there?

 

 

Regards,

Lucky

 

6 REPLIES 6

Sagar Pagar
Tera Patron

Hi @Lucky1,

 

Add the log statement at the beginning and print the urgency and impact values. I think value is not matching with conditions.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Ankur Bawiskar
Tera Patron
Tera Patron

@Lucky1 

did you print the values of those variables just before you start the comparison i.e. the 1st IF

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur and Sagar,

 

Lucky1_0-1745395183385.png

 

The new log, Values are: is also not coming up.

Actually, it seems, it is not going to else if condition I guess.

 

 

Regards,

Lucky

 

@Lucky1 

I informed to add the logs at the very beginning

here

AnkurBawiskar_0-1745398267545.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader