How do I Create an Asset in UiPath when it Doesn’t Already Exist?

Hi UiPath community,

I’m working on a workflow where I need an asset in Orchestrator, I want to prevent the hassle of manually creating this asset during deployment, so I want the process to automatically create text assets based on an instruction coming from an excel.Could anyone advise on:

Thank you

@Godspromise_Obi,

Use Orchestrator API.

Refer this tutorial.

have a look at the following approaches:

Hi @ppr
There’s a tool from UiPath that help with above tasks Orchestrator Manager - RPA Component | UiPath Marketplace | Overview

Here a video tutorial UiPath Solution Accelerators - Orchestrator Manager Deep Dive

@Eric_Alvarado

we already mentioned above

Hello,

You can use the Orchestrator Http Request Activity as seen the image below:

Lets say you want to create a text asset with asset name SpeedValue and value of 50 in the Shared folder of your orchestrator then you will do this:

orchestratorFolderName = Shared

payLoad = "{
  ""Name"": ""SpeedValue"",
  ""ValueType"": ""Text"",
  ""ValueScope"": ""Global"",
  ""StringValue"": ""50"",
  ""RobotValues"": []
}"

Method = Post

Relative Endpoint = "/odata/Assets"

just incase, I have also attached a sample workflow. :slight_smile:

CreateAnAssetIfNotExisting.xaml (17.0 KB)

Cheers

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