Comparing list of dictionaries

I have two list of dictionaries (string , object) type.

1.I need to see all the values in the list of dictionaries.

2.I need to compare both the dictionaries without entering keys.
But I don’t know how to achieve this. Please help.
Thanks in Advance

we can use the Values Property
grafik

One of a few options can be:
grafik

When same values are present
grafik

Kindly note: SequenceEqual is strict on position and value

image
I got this when I use Values function

we assume that you have used a message box and and YourDictVar.Values.ToString

this will return some details to datatype/object but not a string representation of the values

It is recommended to do RnD, Inspections … within the different panels from debugging and fully to avoid using message box, Write Line…

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

The shared screenshots are done while debugging within the immediate panel from UiPath Studio. Same is also available for you for your further exploration and experiments

1 Like

can we store the list of dictionaries in json or data table? Because i need to store the differences.

lets do things step by step and also lets scope a topic to only one case. It is then easier for others to find solutions when having a similar case.

AND

Just elaborate more your business case and what is needed. Once the requierments are clear we can check for the differen solution options

We need to compare the list of dictionaries and store the differences we got in a json file or text file. This is the priority one

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