Hi,
How can I translate the API json request from Swagger UI with sample data into logic in UiPath Studio?:
{
"Enabled": true,
"Name": "API_Schedule",
"ReleaseName": "Process_name",
"EnvironmentName": "DEV",
"StartProcessCron": "0 0 *? * * *",
"ExecutorRobots": [
{
"Name": "ROBOT_1"
}
]
}
I have created the appropriate API command for starting the robot, created using:
Now I want to learn how to create a schedule.
Screen from Studio:
I have created the following commands:
processSchedule = New UiPathOrchestratorAPI.ProcessScheduleDto
UiPathOrchestratorAPI is Service in Imports
processSchedule.Name = "API_Schedule"
processSchedule.ReleaseName = "Process_name"
processSchedule.Enabled = True
processSchedule.StartProcessCron = "0 0 * ? * * *"
processSchedule.EnvironmentName = "DEV"
processSchedule.StartStrategy = 0
processSchedule.ExecutorRobots = *what phrase I need to enter here?*
How the phrase for the data collection should be created to match the json entry:
"ExecutorRobots": [
{
"MachineName": "string",
"Name": "string",
"Description": "string",
"Id": 0
}
processSchedule.ExecutorRobots needs command in:Value(ICollection<,RobotExecutorDto>)
What minimum data is needed to create a schedule?