Skip to main content
Solved

Extract schedule information from Automations in FME Server

  • September 3, 2020
  • 5 replies
  • 168 views

stefanh
Contributor
Forum|alt.badge.img+8

On our FME Server (version 2019.0.2) we have many Automations running; and many Automations include a schedule.

I would like to get the time and day when the Automation is running. I can't find this in the API, is there any other way I could extract this information?

Best answer by jlutherthomas

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:

Screen Shot 2020-09-03 at 10.08.57 AM

 

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:

 

Screen Shot 2020-09-03 at 10.11.19 AM

You can then use the Automation ID in the 'Retrieve information about an automation workflow' API call if you wanted.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

Forum|alt.badge.img+2
  • 364 replies
  • Best Answer
  • September 3, 2020

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:

Screen Shot 2020-09-03 at 10.08.57 AM

 

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:

 

Screen Shot 2020-09-03 at 10.11.19 AM

You can then use the Automation ID in the 'Retrieve information about an automation workflow' API call if you wanted.


stefanh
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 38 replies
  • September 4, 2020

Hi @jlutherthomas​ ,

 

Thanks for the answer; this is userful.

A good reason to upgrade FME Server :).

 

Regards, Stefan


michelle_n
Contributor
Forum|alt.badge.img+1
  • Contributor
  • 4 replies
  • November 19, 2021

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!

 


Forum|alt.badge.img+2
  • 364 replies
  • November 22, 2021

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.


michelle_n
Contributor
Forum|alt.badge.img+1
  • Contributor
  • 4 replies
  • November 22, 2021

@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