Hi @stefanh
This is possible using the FME Server REST API (in 2020.1.1 at least, I'm not sure which version this became possible in).
In your FME Server Web UI at the top right click Help > REST API.
Find the Get Schedules API call and see if it includes the includesAutomations true|false parameter:
If not, you will have to upgrade your FME Server.
Once you get the response, you can see which Schedules are from Automations based on the description. The name of the Schedule will be the Automation name and the description of the Schedule will be the Automation ID:
You can then use the Automation ID in the 'Retrieve information about an automation workflow' API call if you wanted.
Hi @jlutherthomas ,
Thanks for the answer; this is userful.
A good reason to upgrade FME Server .
Regards, Stefan
Hi @jlutherthomas
I have the same question but I am on FME Server 2021. However, I can't seem to find where the Scheduled Trigger information in Automations are located in the API. I have looked through the "automations : Automation Manager" . I am able to find the log file (which details the last run) and the general information of the automation but can't seem to find the CRON expression for the schedule trigger. Am I missing something or looking at the wrong place?
Thanks!
Hi @jlutherthomas
I have the same question but I am on FME Server 2021. However, I can't seem to find where the Scheduled Trigger information in Automations are located in the API. I have looked through the "automations : Automation Manager" . I am able to find the log file (which details the last run) and the general information of the automation but can't seem to find the CRON expression for the schedule trigger. Am I missing something or looking at the wrong place?
Thanks!
@mning
Have you looked at the schedules section of the API? Try setting includeAutomations to true, and that should give you the cron expression.
@mning
Have you looked at the schedules section of the API? Try setting includeAutomations to true, and that should give you the cron expression.
Thank you, I didn't think to look at the schedules section of the API. I see it now.
Thanks again!
Michelle