JS to look at PrivateData as a condition with variable or script expiression
Posted: Wed Apr 05, 2023 2:44 pm
Hi All -
I'm not sure why I'm struggling with this but I'm looking to create a script that will use the PrivateData of "size" that if true will move on to the next folder, and then use an 'all others' condition for any sizes that are false.
I am currently using 'Define condition with variables" but its cumbersome to manage all these sizes and I think it would be easier to place a script to do this since there are several flows that I manage that use this type of routing.
So for example all sizes that are : 6x9, 4.25x5.5, 10x13, would be true and move to the next folder, all other would go to a different folder to additional processing.
I'm not sure why I'm struggling with this but I'm looking to create a script that will use the PrivateData of "size" that if true will move on to the next folder, and then use an 'all others' condition for any sizes that are false.
I am currently using 'Define condition with variables" but its cumbersome to manage all these sizes and I think it would be easier to place a script to do this since there are several flows that I manage that use this type of routing.
So for example all sizes that are : 6x9, 4.25x5.5, 10x13, would be true and move to the next folder, all other would go to a different folder to additional processing.