You can set the value of a variable by adding a Set operation in the Custom Action Editor.
Sets use XPath to identify the variable to set. The
Set dialog provides an
XPath Ref... button that allows you to easily navigate to and select the variable, or the part of the variable, that you want to set.
For the other side of the
Set, the thing you’re setting the variable
from, you either use XPath again or, for a complex type, you can use a database query to set the variable.
The Database Query screen provides a Filter area in which you can select a specific column and choose operators that allow you to build a SQL-like query. If your query returns a single item and you want to reference it as a single item, rather than a list, remember to click the
Single Item check box.