_export

Exports Asset Maintenance data as a single attached CSV file, can use parameters to filter which Maintenances will be exported.

Parameters

Only Maintenances which include the value of this parameter will be valid

daysFrom

An integer value for how many days back Maintenances will be considered valid

daysTo

An integer filter which only allows Maintenances that will occur in the next few days ahead.

active

An integer value which decides if Active or Inactive Maintenances will be exported: 0 => Only Inactive Maintenances are exported 1 => Only Active Maintenances are exported

Example

FM_api('AssetMaintenance_export',[
  'search'=>'Finance',
  'daysFrom'=>'-28',
  'daysTo'=>'0',
  'active'=>'0'
]);

This would export any Inactive Maintenances between now and 4 weeks ago, which include the term "Finance"

Results

These results are from downloaded CSV files

Example 1:

If there are no Maintenances or they are all excluded due to the filter parameters:

Example 2:

Active Jobs a week ago and within the week ahead are included, "search" parameter is unused:

"Wood" has a serial number of 34 Asset Maintenances 31017 and 31018 do not have an expiration date Asset Maintenance 31018 does not have a set user

Last updated