Errors with VB Expression Editor in UiPath App



Kindly please help with these errors in VB Expressions of UiPath Apps

You can try: new ListSource(Of String) From {“A”,“B”…} | A, B just your Values Prod, HR…

@Raghuveer_M

please try this

{"A","B"}.ToListSource

For the second can you let us know what is department and what you are trying there?

cheers

Hello @Raghuveer_M ,

When you have list source app variable then please make sure you pass Fetch list of records.

Easy way to do this please write a set value rules and on to set value rules in value open query builder and select entity and add required filter etc and save. Now generated code u can use anywhere to set a lit source.

I am not able to fetch the variable to the ListSource Option for setting the dropdown.I am getting the above error in doing so. I have already set values to the variable in the events section using create rule. But not able to fetch them in ListSource by giving an vb expression.

@Raghuveer_M

Did you try the above specified

Cheers

Yes Thank you for your guidance

1 Like

@Raghuveer_M

If resolved please close the topic else happy to help

Cheers

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