Skip to main content
Question

Get friendly text from Recurrence field on Schedules screen


jorma
Contributor
Forum|alt.badge.img
  • Contributor

Looking to be able to use the FME Server API to get the text listed in the "Recurrence" column of the Schedules screen (see attached screenshot). Does anyone know if this is possible? Not seeing it when querying fmerest/v3/schedules. Thanks

2 replies

david_r
Celebrity
  • July 12, 2022

It seems you'll have to generate this text yourself, based on the results from 

GET fmerest/v3/schedules/<category>/<name>

See https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/schedules/get_get_3

Sample result:

{
  "owner": "admin",
  "request": {
    "publishedParameters": [
      {
        "name": "SERVER_USERNAME",
        "value": "admin"
      },
      {
        "name": "BACKUP_DESTINATION",
        "value": "$(FME_SHAREDRESOURCE_BACKUP)ServerConfigPackage.fsconfig"
      },
      {
        "name": "BACKUP_APPEND_DATE",
        "value": "Yes"
      },
      {
        "name": "SERVER_PASSWORD",
        "value": "***"
      }
    ],
    "workspacePath": "Utilities/backupConfiguration/backupConfiguration.fmw",
    "TMDirectives": {},
    "NMDirectives": {
      "directives": [],
      "successTopics": [],
      "failureTopics": []
    }
  },
  "workspace": "backupConfiguration.fmw",
  "description": "Backup server configuration to an FME Server Configuration package. By default, the configuration file is saved to the Backup shared resources and the date and time of the backup are appended to the filename. The backup contains the repositories, services, security, notifications, schedules and data shared resources.",
  "sharable": true,
  "repository": "Utilities",
  "skipUntilJobComplete": false,
  "userName": "admin",
  "enabled": false,
  "recurrence": "interval",
  "taskType": "transformation",
  "unit": "DAY",
  "name": "Backup_Configuration",
  "interval": 1,
  "category": "Utilities",
  "begin": "2012-01-01T02:00:00+01:00"
}

 


jorma
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • July 28, 2022

Thanks @david_r​ . That is what we are doing now, just wondering if there was another way. Sounds like that is the solution.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings