16
Views
1
Comments
Solved
Logic flow - For Each retrieve unique data
Service Studio Version
11.53.28 (Build 61664)

Hello,

I am developing a application that on a single button click:

1) Goes through every single sales order data and create a work order data accordingly using a for each node in the logic flow. 

What I want to achieve is for this logic flow to retrieve unique sales order only to run in the for each node. So that in the future when I add new sales order and I click the button to run this logic flow, it will only do so for the new sales order instead of every single sales order again. 

Thank you!

UserImage.jpg
Low Nico
Solution

I have created a local variable to store the start index of the for each node so that each time I add a new work order, the count goes up by 1. This prevents any duplication of data, however, as local variables value only persist in their screen, each time I go to another screen to add more sales order, the start index local variable resets. Any fix for this? Can I use something else to store the value besides a local variable ?




Edit: A client variable did the trick. I managed to solved this issue thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.