Step 8 - Bind the Data

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

With the Initialize Data and Run .Net Script connected the script can consume the Published Data from the Initialize Data activity. Double-click the Run .Net Script to open up the activity and then click on the Details to view the PowerShell script inserted in Step 6. This can be a little tricky as it requires the cursor to be placed between the quotation marks (“ “) and then right-click to insert Published Data.

  1. Right-click to insert between the quotation marks (eg. $username = “<PLACE CURSOR>”)
  2. Click Subscribe
  3. Click Published Data
  4. Select the appropriate Published Data item, for example choose the Username for the $username variable. Repeat this step for all of the other four VARIABLE-PLACEHOLDER spots in the PowerShell script. Each Published Data name corresponds to a variable placeholder.
  5. After all of the Published Data variables have been added to the script you should see the following: