Thursday, July 23, 2015

How to pass multiple variables to the Arguments property of a Execute Process Task

  1. Right-click anywhere in the Control Flow window and select "Variables"
  2. Create whatever number of variables you will need to pass to your task
  3. Double-click on the Execute Process Task and open it in Editor
  4. Select "Expressions". On the right-hand side, click elipse to open Property Expressions Editor
  5. In Property dropdown select "Arguments", and in Expressions click on elipse and to open Expression Builder
  6. In expression window type your expression. (Example: @[User::Variable1] + " " + @[User::Variable2] + " " @[User::Variable3])
  7. When done click "Evaluate Expression" button then click OK to close the editor

Note: If variables you create are not of type String, you will have to cast them to String in your expression

No comments:

Post a Comment