Scrip step in flow while migrating from workflow

venkata2023
Tera Contributor

venkata2023_0-1719084231467.png

Above is not working as expected, can you please suggest modification, or alternatives

If new name is entered in field, return yes, else no, and if new name is entered in field, create catalog task,

I am migrating workflow to flow, above step in workflow is done using If asner script, in flow I am using as above, but it is not working properly. 

3 REPLIES 3

Sohail Khilji
Kilo Patron
Kilo Patron

HI @venkata2023 ,

 

in flow its no necessary to retrun yes or no values as like we do in workflows , here in flows if the condition you give in ''if conditon'' matches it will return true and execute the next activity for if conditon logic or else it will return false and else logic activities will be applied.

 

in your case create a next activity under if conditon if the conditon matches and same for else condition too...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

venkata2023
Tera Contributor

venkata2023_0-1719263352850.png

 

venkata2023
Tera Contributor

Every time its returning yes and creating task, 

My requirement is if new name is entered in a field return yes and create task, else wait for close complete. I defined the if condition if variable is not empty return yes and create task else wait for close condition.