Skip to main content

system.mes.operation.getOperationRecordForLocationAndDate

Description

Retrieves a Operation Records record by the location ID or path, the start date and the end date.

Syntax

system.mes.operation.getOperationRecordForLocationAndDate(locationIdOrPath, startDate, endDate)

Parameters

ParameterTypeDescription
locationIdOrPathStringThe ID or path of the location associated with the operation record.
startDateStringThe start date of the operation.
endDateStringThe end date of the operation.

Returns

Returns a JSON representation of the operation record. Returns nothing if no operation record is found.

Code Examples

# Retrieve an operation record by location, start date and end date
operation_record = system.mes.operation.getOperationRecordForLocationAndDate('01JD7M94CJ-HPEQEJ1F-QA8EQ6VE', '2025-01-01T00:00:00Z', '2026-01-01T00:00:00Z')

# Output the operation record
print(operation_record)