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.

Permissions

This method requires the INVENTORY.READ.GET permission.

Syntax

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

Parameters

No Parameter:

ParameterTypeNullableDescription
None--This method does not take any parameters.

With a Parameter:

ParameterTypeNullableDescription
idsOrPathsList<String>TrueList of IDs or paths of the locations associated with the inventories to publish to the tags.

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'])