상세 컨텐츠

본문 제목

[RPA] Orchestrator api로 스케줄 정보 호출하기

IT/RPA(UiPath)

by Adonis_ 2019. 10. 29. 17:29

본문

목표

Studio에서 Orchestrator Schedule정보 호출하기


변수 선언

변수명 타입
response  String 
JObj JObject 
AccessToken  String 

 

1. Access tocken 요청

1.1 HTTP Request 

[ HTTP Request Activity ]

  • EndPoint : Orchestrator주소/api/accont/authenticate 
    예 ) "https://demo.uipath.com/api/account/authenticate"
  • Method : POST
  • BodyFormat : application/xml
  • Parameters : tenancyName, usernameOrEmailAddress, password (모두 String type)

  • Result : response

1.2 HTTP Request 결과에서 AccessToken 할당

[ Deserialize json Activity ]

  • JsonString : response
  • TypeArgument : Newtonsoft.Json.LinqJObject
  • JsonObject : JObj

[ Assign Activity ] 

  - Bearer [access_token]형태

 

AccessToken = "Bearer "+JObj ("result").ToString

 

 

2. 스케줄 정보 호출

2.1 HTTP Request

[ HTTP Request Activity ]

  • EndPoint : Orchestrator주소/odata/ProcessSchedules 
    예 ) "https://demo.uipath.com/odata/ProcessSchedules"
  • Method : GET
  • BodyFormat : application/xml; charset=utf-8
  • Headers : Content-Type, Authorization (모두 String type)

 

  • Result : response

>> response의 "StartProcessCronSummary" 속성으로 스케줄을 확인할 수 있다.

 

[기타 참고사이트]

https://docs.uipath.com/orchestrator/v2018.4/reference#building-api-requests

https://www.uipath.com/hubfs/Documentation/OrchestratorAPIGuide_2016.2/UiPathOrchestratorAPIGuide_2016.2.html

https://postman.uipath.rocks/?version=latest#3b1b23d7-a019-4e6c-ab7d-4d781b08281f

https://docs.uipath.com/orchestrator/v2018.4/reference#logical-resources-and-metadata

 

UiPath Orchestrator

GET requests are usually the simplest ones to make. They help you retrieve data and use generic OData clauses: $top$filter$expand$select$orderby$skip This clause helps you limit the amount of data you retrieve. It has an upper cap that is determined by the

docs.uipath.com

 

[한글 깨짐 있는 경우]

application/json;  charset=utf-8

'IT > RPA(UiPath)' 카테고리의 다른 글

[RPA] 프로세스 배포 및 Bot에 할당하기  (0) 2019.11.04
[RPA] Invoke Arguments 정의  (0) 2019.11.04
[RPA] 날짜함수  (0) 2019.11.04
[RPA] Studio에서 Asset호출  (0) 2019.11.04
[RPA] Orchestrator에 Bot 연결하기  (0) 2019.10.31

관련글 더보기

댓글 영역