Validation and execution

The Planning Engine data is downloaded to the specified file data source in a zip file format, on successful validation and execution of the macro. The zip file includes model data and versioned configuration of the Planning Engine. If the file name already exists, the file is overwritten with the latest file.

These variables are used for the File name parameter:

  • %Source%: The name of the Planning Engine
  • %date%: UTC date at run time in yyyymmdd format
  • %time%: UTC time at runtime in hhmiss format
  • %datetime%: UTC date and time at runtime in yyyymmdd hhmiss format
  • Application variables can be used and are substituted at run time.

Example:

Requirement Parameters
Download a copy of the "Weekly Supply Plan 20200519" (where 20200519 is today's date) and save to a file data source "BackupFtp" with the same name at the Planning engine. For example, Weekly Supply Plan 20200519.zip. DownloadPlanningEngine("Weekly Supply Plan_%Date%","BackupFtp","","")