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
56 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,050 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,920 points
507 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, 2019 in RPA by Shivi Singhal
5,203 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
111 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,920 points
391 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,920 points
11,129 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,920 points
392 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,050 points
4,263 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,050 points
282 views