msetrec
Use the msetrec command to set the field values in a global record. Global records are defined in the records directory of a Knowledge Base. The cell uses global records as global variables in rules.
msetrec syntax
The following figure shows the syntax for msetrec.
msetrec syntax
{-p <Var=Value>} [-n <cellName> | -n @Host[/Port[#Key]]]
-r <Record> -S <Slot> -V <Value>
The following table lists the command-specific options for msetrec. For a list of common command options that apply to all CLI commands, see Event-management-common-command-options.
msetrec options
Option | Description |
---|---|
-p Var=Value | Assigns the specified value (Value) to the option (Var) |
-r Record | Specifies the global record containing the Slot to be modified |
-S Slot | Specifies the Slot to be modified |
-V Value | Specifies the Value to set for the specified Slot |
msetrec example
The following figure shows an example of msetrec.
Example of msetrec
msetrec return codes
The following table lists the command-specific return codes for msetrec. For a list of common return codes that apply to all CLI commands, see Event-management-return-codes.
msetrec return codes
Code | Description |
---|---|
31 | Failed to set record slot |