Skip to main content

system.mes.unitOfMeasure.deleteAllUnitOfMeasureConversions

Description

Deletes multiple Unit Of Measure Conversions records by their IDs. This cannot delete unit of measure conversions that have references to them.

Syntax

system.mes.unitOfMeasure.deleteAllUnitOfMeasureConversions(ids)

Parameters

ParameterTypeNullableDescription
idsString[] (ULIDs)FalseA list of IDs of the unit of measure conversions to delete.

Returns

If successful, an ApiResponse object is returned with the success flag set to true. If any of the unit of measure conversions being deleted have references, an ApiResponse object is returned with details about the encountered error.

NameTypeDescription
successBooleanIndicates if the delete was successful.
messageStringThe reason why the deletion was successful or unsuccessful.
dataStringThe data associated with the deletion.
errorStringThe errors associated with the deletion.

Code Examples

# Delete multiple unit of measure conversions by ID
result = system.mes.unitOfMeasure.deleteAllUnitOfMeasureConversions([
'01JCH4NZH2-C7494ZJT-P52KRZEY',
'01JCH4NZH2-C7494ZJT-P52KRZEZ'
])

if not result['success']:
print('Failed to delete unit of measure conversions: ' + result['message'])