Did you know that you can navigate the posts by swiping left and right?
Earlier I introduced you to the WorkXpress API. If you have not read it already you should do so before reading this post. Once you have a basic understanding of what it is and how it works, it’s time to start diving into the API.
This post will cover how to run specfic Actions on specific Items. You can find the id of an Action at the end of its description in the Event Manager (see below). Like the other functions, you can make many ExecuteAction requests in one call using data sets.
First, let’s get an understanding of how the request XML should be formed.
|/wxRequest||The root node for all request documents.|
Contains a single ExecuteAction request. You may have as many data sets
as you would like.
|/wxRequest/dataSet/items||Root node for the items that the Action(s) should be run on.|
A single item to execute the action on. There is no limit to the numbe
of item nodes allowed in a data set.
|/wxRequest/dataSet/items/map||The root node for a map definition.|
|/wxRequest/dataSet/items/map/definition||The actual definition for a map. The map XML must have its HTML entities encoded.|
|/wxRequest/dataSet/actions||Root node for the Actions to be executed.|
A single Action to be executed on the Items defined above. There is no
limit to the number of action nodes allowed in a data set.
Now let’s get an understanding of how the response XML will be formed.
|/wxResponse||The root node for all response documents.|
The status of the SOAP call as it was processed by WorkXpress.
|/wxResponse/compatibilityLevel||The version of the API that was used to process the request.|
One data set is returned for each data set in the request document.
Defines an item that the Action(s) was executed on. One item node is
returned for each item that an Action was run on.
Below is an example of a basic ExecuteAction request document:
Below is the corresponding response document for the above example:
If you have any questions or would like assistance making some ExecuteAction requests of your own, please feel free to comment below. My next post will be on some more advanced concepts such as display formats and stored values.