How to overwrite default value to blank/null from an inbound action?

Jared Wason
Tera Guru

Hello,

 

In our dictionary entries for Impact/Urgency, we have default values. I have an inbound email action where I would like to be able to set the Impact/Urgency to blank or null. Does anyone know how I can do this?

I have tried the following in my inbound email action.

 

 

//current.impact = 3; //does work, not what i need
//current.urgency = 3; //does work, not what i need 
//current.impact = ""; //doesnt work
//current.urgency = ""; //doesnt work
//current.impact = null; //doesnt work
//current.urgency = null; //doesnt work

 

1 ACCEPTED SOLUTION

Jared Wason
Tera Guru

I ended up just creating a onLoad Client Script that uses g_form.clearValue to wipe the values that I needed, instead of trying to make the change occur in the inbound action.

View solution in original post

6 REPLIES 6

Omkar Kadoli
Tera Contributor

Hi Jared Wason,

creates a BR before update that is executed when the state changes from resolved to open

current.fieldName = '   ';

 

5.PNG

 

If it not work then go through below link also,

https://www.servicenow.com/community/now-platform-forum/setting-the-default-value-of-a-field-to-noth...


Please mark this as "Correct Answer" if I have given you a sufficient answer to your question.

 

Thanks,

Omkar

Jared Wason
Tera Guru

I ended up just creating a onLoad Client Script that uses g_form.clearValue to wipe the values that I needed, instead of trying to make the change occur in the inbound action.