Support > Forums > OpenBots Studio > Get a specific Dictionary Key instead of Value
I would like to get a Key from a specific Key Value Pair from the Dictionary I created. There is this error message ("Invalid Dictionary Value Type") when i use this command "Get Key from KeyValuePair". Any idea how to do it?
This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
Hello,
In order to get the key from a specific Key Value Pair, it is important to first obtain the KeyValuePair wanted from the dictionary (this can be done by looping through the collection). Then, this can be used as input for the Get Key from KeyValuePair command. The Get Key from KeyValuePair command requires the following fields:
<li>Output Key Variable - Requires a string type variable in which the key for the specified key value pair will be saved.</li>
Hope this helps!
You are not authorized to reply, please click here to login and add your reply to this topic.