I'm having one heck of a time trying to retrieve these multiple-value tokens located in a documents template data. I simply want to gather the Appropriation Name and Amount, combine them in one line and send a separate email for each entry. With the current process I'm getting 2 emails but just with the Appropriation Name and it doesn't show the Appropriation Amount. Tried a bunch of other ways to combine the values into one line without success. Any help appreciated! John
Question
Question
Retrieving Field Group Multi-Value Token Values From Template
Answer
Hi John,
It looks like you're most of the way there, but you will need to include the Appropriation Amount in the email as well since it's a different token. Since you want to make sure you grab the Appropriation Amount that's in the same grouping as the Appropriation Name, you'll need to use the Token Editor to target the specific information you need.
In your example, you're using For Each Value with the Appropriation value, which will give you your separate emails properly for each value listed in the Appropriation field. The only item you'll need to add for your testing email is going to be the matching Appropriation Amount token. To specify that you want the first Appropriation Amount value in the list when you're reporting on the first Appropriation name, the second Amount when you're looking at the second name, and so on--you will want to Apply Index to your token, then use another token to do this dynamically, specifically the Iteration token that results from your For Each Value activity. See example below:
In this example, I'm using the number of iterations to track which value in the multi-value token I want. Does this target what you're looking for?