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.
- Right-click to insert between the quotation marks (eg. $username = “<PLACE CURSOR>”)
- Click Subscribe
- Click Published Data
-
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.
-
After all of the Published Data variables have been added to the script you should see the following: