Change work order (optimcmd -workorder action=update)

Use the Change work order command to change the properties in a work order other than the work order state. The changes to the work order are based on the properties in a specified text file.

Command structure

The following diagram indicates the structure of the command and its parameters.

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -workorder-+--action=-+-update-+--work_order_id--properties.txt-><
             '- -w---------'          '-u------'                                  

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-workorder or -w
The Work order command.
action=update or action=u
Indicates that the command is to change the properties of a work order.
work_order_id
The ID of the work order whose state is to be changed.
properties.txt
The name of the text file that specifies the properties to change in the work order. Specify each property on a separate line of the text file.
description=description
A short description of what the work order is to do. For example, Create a subset of customers.
priority=priority_id
The time in which the work order is to be completed. Valid priorities are:
  • Immediately
  • Within 8 Hours
  • Within 16 Hours
  • Within 24 Hours
  • Within 48 Hours
comments=comments
Additional information to add to the work order. This information is available to others who work with the work order.
createdBy=creator_id
The user ID of the user who created the work order.

Return codes

The following return codes can be received when you enter the command.

Return code Description
0 No errors.
4 The specified work order was not found.
8 The command was not formed correctly.
12 The command cannot connect with the connection manager. The connection manager is not active or there is no active network connection between the computer and the connection manager computer.


Feedback