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
1,114 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,150 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
• 28,140 points
2,853 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, 2020 in RPA by Kim
1,966 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
692 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
• 28,140 points
1,310 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
• 28,140 points
1 flag 37,762 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
• 28,140 points
4,725 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 14, 2019 in RPA by Anvi
• 14,150 points
10,054 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,150 points
6,335 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP