Flow designer not to update empty input from variable

kk9
Tera Contributor

I am trying to update a record from Flow designer, I want to skip the update if the variable input is empty. Please suggest how I can skip a specific filed update if the variable input is empty. 
Thanks in advance. 

4 REPLIES 4

Marcin20
Mega Guru

Hi,

I propose to add the if Flow Logic before the update Flow Action and execute this action only when the if Flow Logic condition is true.

 

Best Regards,

Marcin  

 

If my answer helped you in any way, please mark this answer as helpful and correct.

kk9
Tera Contributor

Thank you for the response!!

I do have eight fields like that, and we cannot add if logic for each one 😞

Could you please suggest any other option that we can utilize in flow designer? 

Hi,

You can have one If logic with eight conditions. It would be easiest to maintain.

Such as:

Field 1 is not   AND

Field 2 is not   AND

Field 3 is not    AND  [..]

 

Best Regards,

Marcin

 

 

Brian2046
Tera Contributor

just script it

 

var gr = inputs.someRecord;

 

 
if(inputs.var1){
    gr.var1 = inputs.var1;
}
 
if(inputs.var2){
    gr.var2 = inputs.var2;
}
 
try{
   gr.update();
}
catch(ex){
   //error handler
}