Hello there,
Understand my problem:
I have 3 parts to run,
If 1st part run on Thursday(Business day), 2nd part should run on Friday(Business day) and 3rd part should on Monday(Business day).
Can anyone help on how to update triggers cron expression from UiPath api activities?
Thank you very much in advance.
UpdateTrigger.zip (1.7 KB)
I share you and example to change the tigger by API just for CronExpression, I hope this can help you
Hi Benjamin, Thanks for the response.
I tried the code that you shared
For relative end point “/odata/Process…” isn’t working. So I used “/odata/Releases?$filter=%20Name%20eq%20’Test_NPDL’”(attached png).
It gives me TriggerId and status code as 200, but I’m not able to update the cron. I used relative end point for put request is “/odata/Releases?$filter=%20Name%20eq%20’Test_NPDL’(”+ TriggerID +“)”
Kindly let me know what to do to achieve this?
Thanks in advance
Hi Benjamin, Thanks for the response.
I tried the code that you shared
For relative end point “/odata/Process…” isn’t working. So I used “/odata/Releases?$filter=%20Name%20eq%20’Test_NPDL’”(attached png).
It gives me TriggerId and status code as 200, but I’m not able to update the cron. I used relative end point for put request is “/odata/Releases?$filter=%20Name%20eq%20’Test_NPDL’(”+ TriggerID +“)”
Kindly let me know what to do to achieve this?
Thanks in advance
Hi @Sunil_Kumar_Marri1, it does not work because you need to create a Trigger from orchestrator, when you use /odata/Releases you are calling the processes, I mean with /odata/ProcessSchedules you are calling yours triggers created in orchestrator and here you can set up this cron expression
Hello Benjamin,
I already created trigger in orchestrator, but when I use /odata/ProcessSchedules. I got status as 403(attached png). Do I need to specify trigger name or something?
please help
You need to add permision to read and edit tirggers from manage access >Role and edit role that your account is using