상세 컨텐츠

본문 제목

API로 Queue생성하기

IT/RPA(UiPath)

by Adonis_ 2021. 11. 18. 17:05

본문

API로 Queue생성하는 방법
변수명 Type
jResponseObject JObject
sAccessToken String

1. Authenticate 

 1-1. HTTP Request Activity

 - EndPoint = "https://orchestrator_url/api/account/authenticate"

 - Method = post

 - body = "{""tenancyName"":""tenant name"",""usernameOrEmailAddress"":""user email"",""password"":""user pw""}"

 - bodyFormat = application/xml

 - Result = sResponse

 

 1-2. Deserialize JSON Activity

 - sResponse > jResponseObject

 

 1-3. Assign

 - sAccessToken = "Bearer " + jResponseObject("result").ToString

 

2. Queue생성

 2-1.HTTP Request Activity

 - EndPoint = "https://orchestrator_url/odata/QueueDefinitions"

 - Method = post

 - body = " {""Name"": """+sQueueName+""", ""Description"": """+sQueueDescription+"""}"

 - bodyFormat = application/xml

 - Header

  Content-Type = "application/json"

  Authorization = sAccessToken

 

※ Orchestrator 설정(Enterprise 20.10.2버전)

Tenant > Roels > Bot > 아래권한부여 

권한부여 필요

관련글 더보기

댓글 영역