UI Action sets a different value than the one in the script

mfhaciahmetoglu
Mega Sage

Hello all,

 

I have encountered a very weird problem.

 

I created a simple UI Action called "Cancel". Here is the settings:

mfhaciahmetoglu_0-1738860819669.png

mfhaciahmetoglu_1-1738860828426.png

 

It works just as expected when I click on it. The conditions are also working just fine:

 

mfhaciahmetoglu_2-1738860866758.png

 

But when I say OK, then the script set it to Closed Complete, instead of the value I prescribed:

 

mfhaciahmetoglu_4-1738860956825.png

 

mfhaciahmetoglu_3-1738860938683.png

I have no idea why this is happening? 

 

Thank you.

 

Best,

Firat

 

7 REPLIES 7

Okay, I moved my BR to after and the problem seems to be solved :).

@mfhaciahmetoglu 

Glad to know that my comment about business rule solved your issue.

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

Sheldon  Swift
ServiceNow Employee
ServiceNow Employee

Can you manually set the state to Cancelled and see if the state changes to Closed Complete on database update?