TryGetValue not working

Hi Guys I want to retrieve a value from my dictionary based on a key…meaning I mention the key and system looksup in the dictionary and fetches the value corresponding to that key…I learnt about TryGetValue. it says this will give you a boolean value like true or false if the key is found in the dictionary plus it will also return the value found against this key…but when I am using the method in my workflow. it is only returning the boolean and not the value. so the key i want is there in the dictionary and hence boolean result is true but value is null.

i have a dictionary for months, key -01, vallue-January …and so on
can someone help pls…
below are the screenshots of the debugging -

image

image

image

image

thanks

Hi,

Assign activity does not support ref/out argument. (These are handled as In type argument)
So, can you try Invoke Method activity as the following?

Regards

1 Like

Thankyou so much…It worked. :slight_smile:

1 Like

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