You need to sign in to do that
Don't have an account?
Bhavishya Moolya
Visual Workflow parse through collection of records to see if values are same or not and then update a field based on the result
I want to compare the value in a collection -
Example - "colorCollection" is a collection variable with values which are {Yellow, Yellow, Yellow, Yellow} then update the field "color" should be updated with the common color in that was in the collection, in this case, it should be Yellow
Now if the values in the collection are not the same, where "colorCollection" is {Blue, Green} the "color" field should be updated with the value mixed
I tried to loop through the list but I am not able to compare the previous value with the next value. Any suggestions?
Example - "colorCollection" is a collection variable with values which are {Yellow, Yellow, Yellow, Yellow} then update the field "color" should be updated with the common color in that was in the collection, in this case, it should be Yellow
Now if the values in the collection are not the same, where "colorCollection" is {Blue, Green} the "color" field should be updated with the value mixed
I tried to loop through the list but I am not able to compare the previous value with the next value. Any suggestions?
One approach you can take here is below. However, this might be a lengthly approach to take up and include multiple loops and assumption that there are only limited number of colors.
Hope this helps. Please mark as best answer if it does.
Cheers!!
Gaurav
All Answers
One approach you can take here is below. However, this might be a lengthly approach to take up and include multiple loops and assumption that there are only limited number of colors.
Hope this helps. Please mark as best answer if it does.
Cheers!!
Gaurav
I really appreciate your detailed approach.