Loop through String collection in Dictionary


I have a dictionary that is of type String, List of String. Specific keys in that dictionary (not each key) contain values that are a list of email addresses that I need to input into an email. I’m having difficulty grabbing the emails from the List of String for each Key. I’m currently using a For Loop but if someone could clarify what the TypeArgument should be, that would be great (I’m currently using System.Collections.Generic.KeyValuePair<System.String, System.Collection.Generic.List<System.String>).

I am unable to provide screenshots but if someone could talk me through how to do this, that would be great!

Thank you!

have a look here, maybe it helps for the further implementations:
Sequence2.xaml (7.6 KB)

@ppr Thank you for the quick response and that information!

In that for loop on my workflow (your example has forEach item in dict1) I’m receiving the error: For Each: Object reference not set to an instance of an object.

Any thoughts?

In such cases debugging is the first step to check the null value issue. Maybe you can share your implementation. In case of some code mergers just check variable names and its scopes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.