How to get the keys on the basis of corresponding values from a dictionary?

0 votes

Hello , I have a dictionary of type (Integer , string) where key is index of row and value is its string value.

I need to get the keys on the basis of value i.e. If I have NewYork , I want 3 as key. Dictionary is as follows:

1 London
2 Paris
3 NewYork
4 Tokyo
5 Mumbai

Oct 23 in RPA by anonymous
• 3,680 points
15 views

1 answer to this question.

0 votes

Hi there, if you need to get the key based on its value, then you can try like this.

yourDictionary.FirstOrDefault(Function(x) x.Value.Contains("passvaluehere")).Key

where x is Linq Lambda expression.

answered Oct 23 by Anvi
• 13,960 points

Related Questions In RPA

0 votes
1 answer

How to read data from a excel, based on that data, check in the corresponding checkbox in browser appln? Uipath

Hi, to achieve this, you can perform ...READ MORE

answered Oct 10 in RPA by Abha
• 27,180 points
55 views
0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2 in RPA by Shivi Singhal
3,675 views
0 votes
0 answers
0 votes
1 answer

connect uipath studio to orchestrator

This is a duplicate question. You can ...READ MORE

answered Sep 18 in RPA by Abha
• 27,180 points
117 views
0 votes
1 answer
0 votes
1 answer

How to read 1 row from one sheet and write it in another sheet?

Hello, you can change the query like ...READ MORE

answered Oct 23 in RPA by Abha
• 27,180 points
22 views
0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 13 in RPA by Anvi
• 13,960 points
2,585 views
0 votes
1 answer

Is there any way to get the number of New Items in a Queue?

Hi @Pratibha, yes you can get the ...READ MORE

answered Oct 23 in RPA by Anvi
• 13,960 points
13 views