How can i create a library component that has the same features as Get Credential?

When i use the Get Credential activity, it automatically updates the orchestrator folder path with all the folder paths in my tenant.

How can i implement this dropdown menu in my own components?

@lr101

orchestrator http request and use get folders end point

for details check swagger

<orchestratorurl>/swagger/index.html

cheers

can this be built in UiPath library or do i need to use visual studio?

@lr101

can be build in UiPath library as well…but to get all the folders and pass in dropdown i dont think UiPath library supports that dynamic dropdown yet..you can check in the latest versions if it allows dynamic values..as far as I remember it allows static values only dropdown..

if you dont want to fetch and show but you know the folder and want to use the names directly can go with UiPath library as well

cheers

is there an Argument type you can pass?

@lr101

I did not get your question

cheers

you can pass an argument that can be converted into a dropdown list. i was wondering id there was an argument type that that could get all folders from orchestrator and then convert to a list

@lr101

that would be an api call

and passing as list of string is what you need to do

cheers

The activity layout options in UiPath Libraries don’t have support for such advanced dynamic content generation yet.
You’d need to build this in Visual Studio in some custom WPF.

@lr101

If you want to create it as an activity to use inside your UiPath workflow, you’ll need to use Visual Studio.
However, if you’re looking to create a dropdown component for the user to select a folder, you can use UiPath Form Activities to build a UI form — it includes a dropdown control that can be configured for that purpose.

This is not accurate.
You can create libraries for Activities in Studio, you have been able to do this for maybe 6-7 years.

You can also make dropdowns for those activities aswell as other controls on the layout, but the dropdown can currently only be a hard coded list of static values, not a dynamic list.

I didn’t mean to imply that creating libraries or dropdown controls within Studio isn’t possible — as you rightly pointed out, those capabilities have been available for quite some time. My intent was to emphasize that if the sole requirement is to present a dropdown as a UI element for user interaction, then using Form Activities might be a more straightforward and efficient approach.

I don’t believe that was ever shown as the intent? But fair enough.

I think if you didnt intend to say you need to use Visual Studio to make activities then you worded it weirdly, hence my correction, but good to clarify.