Set Variable |
The Set Variable action sets the value for either an existing variable or a new variable that you specify.
You can configure the following properties for the Set Variable action:
Action
Name: Specifies the name of the action. If desired, you can replace the default name by typing a new name in the field.
Description: Allows you to save a description for the action.
Run Action: Allows you to specify how often you want to run the action.
Always: Specifies that the Integration Service will run the action each time it runs the integration.
Never: Specifies that the Integration Service will not run the action when it runs the integration.
Conditionally, based on variable: Specifies that the Integration Service will run the action only when a selected variable meets a specified condition. Use this option in situations where there is only one condition that determines whether or not the action will run. Once you have enabled this option, you can create the conditional statement in the input box provided.
Conditionally, based on expression: Specifies the conditions under which the Integration Service will run the action. Use this option for situations that require more than one conditional statement. Once you have enabled this option, you can create the conditional expression in the input box provided by creating the desired conditional statements. You create and edit your conditional expression on the Tree View tab. Click the Text View tab to see a read-only text view of the conditional expression.
Variable
Name: Displays the name of the variable. You can enter a new name in the text box.
Value: Specifies the value for the variable. You can enter a new value in the text box.
Import: Opens the Open File dialog so that you can browse to and select a file that contains the values that you want to be assigned to the variable. The contents of the file are imported into the Value field.
Export: Opens the Save File dialog so that you can save the contents of the Value field as an external file. You can save the value as a new file or replace the contents of an existing file.