How to send hotkey in Select item activity

Hi,
I have a drop-down list of roles in a web application. If user has one role then we need to press control key and add another role in it.
Can someone please help on how to do this in select item activity like how to pass control key in select item activity.
image

thanks in advance

@shiva_raj2

Please use this activity

This helps you select multiple items

And there is no option in select item to send keys

Cheers

I used that then it was throwing an error
image
I need to take the roles from excel sheet and select

Hi @shiva_raj2

It needs an array of string… values should be passed like an array like below

{var1,var2….}

{roles.tostring.trim}

I hope roles is of type string

In excel are the roles in a column?

Cheers

1 Like

yeah, Roles is string type, Roles are present in excel column

@shiva_raj2

If all roles are in a column in excel then read the excel into datatable(dt)

Then
dt.AsEnumerable.Select(function(x) x("RolesColumnName").Tostring).ToArray()

This will give the array of all the roles which can be passed in the select multiple items

Cheers

it worked thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.