How to specify data type when using the "Key exists in dictionary" activity?

Hi

I’m trying to create a for-each-loop, where the I go through a database and either add a new item to my dictionary or update an existing one, if the key already exists, using the “Key exists in dictionary” activity.
My dictionary is (String,Double), but the “Key exists in dictionary” activity requires an (object,object)-dictionary. How do I specify which type of data my dictionary contain?

Cheers and thanks

Lapet

Instead of using the “Key exists in dictionary” , you can use the ContainsKey method of Dictionary class as below

image

1 Like

Hi - that seems to work. Thank you very much

I also found out, that the “Key Exists in dictionary” activity should prompt you for data type, when you add it to the project. i must have missed the prompts or something.

Thanks again

Thanks for marking it as solution.
Keep automating!

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