You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Best way to remove multiple values from a token from another token

posted on November 25, 2024

Hi all, 

 

Just trying to find the best way to remove some items from a multi value token. I could use if statements at the point of appending data, but I'd prefer to use a token which I'll be able to update easily.

So for example I have a multivalue token of A,B,C,D,E. From another token I have values C,D. I would like to remove C,D from my first multivalue token.

What would be an optimal way to achieve this?

Thanks

 

 

 

0 0
replied on November 25, 2024

Thank you Jason, that works perfectly, I was stuck with the logic but that is a great way to do it.

Appreciate the detailed instructions!

 

0 0
replied on November 25, 2024 Show version history

You could:

  1. Add a For Each Value activity to iterate the list of values you want to remove
  2. Use an Assign Token Values activity to modify the main list
    • Modify the existing list and set it to replace the current values
    • Set the new value equal to the same token
    • Use the token editor with a Function to Remove the "current value" in the loop

 

4 0
You are not allowed to follow up in this post.

Sign in to reply to this post.