The Zurich release has arrived! Interested in new features and functionalities? Click here for more

FLOW Designer trigger condition with (Name-Value Pairs) field type .

siva mani kanta
Tera Expert

Hi All,

Need to create flow designer 

find_real_file.png

 

trigger condition when  test3 Vale !=  NO  

 

can any one please help me to set this.

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Create a Update trigger on the table with Run Trigger set to "For every update".

Create an Action with Input of type "String".  Type "Name/Value" won't accept variable input so use "String" here. Name/Value will be a JSON object so will parse in the following Script Step.

Create a Script Step.

(function execute(inputs, outputs) {
  var pairs = inputs.pairs.toString(); // "pairs" is the name of the input variable of type "String"
  var jsonObj = JSON.parse(pairs);
  if (jsonObj.test3 != 'NO') {
    outputs.execute_flg = true;  // "execute_flg" is the name of the output variable of type "True/False"
  } else {
    outputs.execute_flg = false;
  }
})(inputs, outputs);

Add an If condition based on the result of calling Action.

find_real_file.png

View solution in original post

7 REPLIES 7

Check the execution log (click on the "Steps" to expand execution result) to find where the error is happening.

Also, from the screenshot, the input variable name is "parameter". Change that to "pairs". If the output variable name isn't "execute_flg", change it to that too.

find_real_file.png

 

correct,

Thanks 

Hitoshi Ozawa.:)

 

Hi 

var pairs = inputs.pairs;

 var cuval = "<ul>";

while(pairs.next()){

 cuval = cuval +"<li>"+pairs.u_wf_id.workflow.vars.u_customer_id.toString()+"</li>";  

}

 cuval += "</ul>" 

outputs['cuval'] = cuval;

 

customer id getting duplicate 
example:

234567

234567

234567

1098765

like this i am getting 3 outputs but i need to send as only one out put for this 3 so i need to set aggregate can you please help me how to set aggregate for this

 

expected output:

234567

1098765