Set integer to null using Flow Designer

Max McFa
Tera Expert

Hello Community,

 

I'm attempting to use the Update Multiple Records action to blank/null an integer field on the User table. I've attempted multiple methods, however none of them seem to work. Can anyone suggest a method that works for integers?

 

I've attempted the following:

Use the scripted function to:

return '':

return"";

return 'NULL';

return "NULL";

 

I've also attempted to set a flow variable to blank and assign the value using that.

 

MaxMcFa_0-1699566618157.png

 

Thanks for your help!

3 REPLIES 3

Shubham Singh
Mega Guru

Hi @Max McFa 

 

Try return null;

Do not use apostrophe (') while returning null. It will convert it to String if you use ' or ''.

 

Thanks!

 

Mark it as helpful if it works 🙂

Thanks for the suggestion, Shubham. However, that did not resolve the issue. Perhaps ServiceNow is treating null as no update? I'm able to set it to other values.

SanjivMeher
Kilo Patron
Kilo Patron

It looks like you may need to do a Lookup records as suggested in below thread and then update each item. 

 

https://www.servicenow.com/community/developer-forum/flow-designer-update-multiple-record-not-work-w...

 


Please mark this response as correct or helpful if it assisted you with your question.