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, 2019 in RPA by anonymous
• 3,690 points
101 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, 2019 by Anvi
• 14,090 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, 2019 in RPA by Abha
• 27,930 points
644 views
0 votes
1 answer

How to read a data from Network folder and copy the date modified time of the folder

Hey @Swapna, you can loop through every ...READ MORE

answered Jun 18 in RPA by Kim
57 views
0 votes
0 answers

Visualisation of Scheduling different Orchestrator in UiPath

I am looking for a visualisation for ...READ MORE

Aug 2, 2019 in RPA by anonymous
138 views
0 votes
1 answer

connect uipath studio to orchestrator

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

answered Sep 18, 2019 in RPA by Abha
• 27,930 points
490 views
+1 vote
1 answer

What is the pricing scheme of Uipath for UiPath Studio, Orchestrator and Robot licence?

Hey Pratibha, Uipath pricing scheme is as ...READ MORE

answered Oct 11, 2019 in RPA by Abha
• 27,930 points
15,144 views
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, 2019 in RPA by Abha
• 27,930 points
789 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, 2019 in RPA by Anvi
• 14,090 points
4,770 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, 2019 in RPA by Anvi
• 14,090 points
549 views