Need help to convert scripted "if" activity of workflow into flow desginer [ if logic]

Sachin Gavhane
Giga Guru

Hi Team ,

Below is the "if" activity of my workflow, I want to execute the same activity in flow designer. 
Here , script returns the value yes / no and depending upon the returned value the flow continues.

SachinGavhane_0-1727698621068.png

Kindly help me to achieve this in flow designers

2 REPLIES 2

Stefan Reichelt
Tera Guru
Tera Guru

Hm, the special thing in this situation is the getProperty() which is (why ever) not there as an OOB action in Flow Designer. But you could easily create it as a scripted action. If you create it with a flexible input parameter, you can retrieve both properties one after another with the same action, and then use a simple If, using the outputs of both steps to go on with your flow. If you need this more often, you can even put that sub logic (retrieve both properties, and return either true or false) into a reusable Subflow.

Sandeep Rajput
Tera Patron
Tera Patron

@Sachin Gavhane You can simply create a custom action using flow designer to fetch the property value and paired with output from Get Catalog Item Variables action you can replicate the exact same action.