Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Conditional workflow based on value from summarize tool

$
0
0

Hi, I have a workflow and part of workflow needs to be decided to run based on the number of record return of right join from join tool,

If there are records in right join part ,  I need to run another dynamic query(Query 2).

Eventually, I need to union the results from Query 1 and Query 2.

 

1.png

I know there are Detour tool and can set control parameter based on number of right join records.

Then I try to build batch macro and use detour ,Here is the example I built .

1.png

 

 

Then I connect this batch macro back to my workflow.

I connect summarize result(the number of right join record, only have one value) to control parameter input.

Also I connect the result of filter to Macro input .

But then I receive the error below:2.png

 

Please let me know if you have any thoughts

 

Thanks

 

 

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles