Combine two list of dictionary

The two lists contain the same number of dictionaries.
I would like to add all the keys from each dictionary in list B to list A.

1 Like

The most straight forward approach would just be to return a list for keys and values instead of an actual Dictionary A. Then just combine the lists to create Dictionary B. But since you already have both dictionaries, you can just use Dictionary.SetValueAtKeys to add new keys.

thanks for you help but i already try this approach but i failed :slight_smile:

Can you show us what you’ve tried then? If it’s failing, what errors are you getting?

It creates another sublist in list 0 Instead of adding it.
by the way i would like 10 : Angle6 , 11 : EQUIP_2, 12: Angle3
and i tied all levels same problem

If you’re going to add the sublist to an existing list then you’ll need to flatten afterwards.

That being said, using Dictionary.SetValueAtKeys would be way easier. Just set the list levels to match your dictionaries and combine them.