Skip to main content

system.mes.shift.getShiftReferences

Description

Retrieves a list of references to a Shifts record by its ID.

Syntax

system.mes.shift.getShiftReferences(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the shift to inspect.

Returns

Returns a list of JSON objects. Each JSON object has the following properties:

NameTypeDescription
tableNameStringThe name of the table that contains references to the shift.
referencesList<JSON Object>List of JSON objects corresponding to referencing rows.

The JSON objects in references have the following properties:

NameTypeDescription
fkColNameStringThe name of the foreign key column.
idString (ULID)The ULID of the object that is referencing the shift.

Code Examples

refs = system.mes.shift.getShiftReferences('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(refs)