Extract Values from a Message
The amps-action-do-extract-values module extracts message values from a message and stores the values in a variable.
To extract values from a message, this module requires the MessageType and Value parameters. In addition to that, this module also accepts an optional parameter listed below:
| Parameter | Description |
|---|---|
| The message type for the message to parse.
|
| An assignment statement that specifies the variable to store the extracted value in and the XPath identifier for the value to extract. This action can contain any number of The format of the assignment is as follows: For example, the following assignment statement stores the value of the Likewise, the following assignment statement creates a string from the values of the There is no default for this option. If no |
Data | Contains the data to parse. Typically it is a message received from a publish event or retrieved from a SOW query. The action expands context variables when this action is run, which can be useful for processing variables set by other action steps. There is no default value for this parameter. If it is omitted, AMPS will not parse data when the action is run. |
The module amps-action-do-extract-values adds the variables specified by the Value options to the current context.