Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Error handling for update record action in flow designer

Vinay2509
Tera Contributor

Hi Team,

 

I have senario like, I am updating record via flow designer using update record action, where if duplicate record got updated then error will show in flow(duplicate record handled via BR)

 

Now the question here, How to handle error when it occurs at update record action in flow designer.

 

we used used LOG, Script, Try catch.. but unbale to handle.

 

please advise!

 

@Aneesh-D - Please help if you have idea

 

 

1 ACCEPTED SOLUTION

Aneesh-D
Tera Guru
Tera Guru

@Vinay2509 ,

 

The easiest way to fix this would be use "Update Multiple Records" action instead of update record action.

 

AneeshD_0-1710536476357.png

Another option would be: if you wanted to take different action depending on returned records, then you can first look up the records and then use a for each loop to update the individual records. Flow would look like below:

 

AneeshD_1-1710536954494.png

 

View solution in original post

1 REPLY 1

Aneesh-D
Tera Guru
Tera Guru

@Vinay2509 ,

 

The easiest way to fix this would be use "Update Multiple Records" action instead of update record action.

 

AneeshD_0-1710536476357.png

Another option would be: if you wanted to take different action depending on returned records, then you can first look up the records and then use a for each loop to update the individual records. Flow would look like below:

 

AneeshD_1-1710536954494.png