Skip to main content

system.mes.inventory.publishInventoryState

Description

No Parameter: Publishes all of the Inventories to the tag system.

With a Parameter: Publishes only the specified Inventories to the tag system given the ID or path of the location associated with the inventory.

Syntax

system.mes.inventory.publishInventoryState()
system.mes.inventory.publishInventoryState([locationIdsOrPaths])

Parameters

No Parameter:

ParameterTypeDescription
None-This method does not take any parameters.

With a Parameter:

ParameterTypeDescription
locationIdsOrPathsList<String>List of IDs or paths of the location associated with the inventory.

Returns

If successful, no response is returned.

Code Examples

# Publish the tag for the specified inventories based on the location path
system.mes.inventory.publishInventoryState(['DariyCo/Plant1/Line1', 'DariyCo/Plant1/Line2'])