Server Automation API XML for "Dynamically Run Baselines from a Site" task

Hi All,

When using the “Dynamically Run Baselines from a Site” task as part of the automation plan, there is a parameter value that needs to be set from a drop-list of all the Sites before you can take action on the automation plan.

The issue I’m having is hard-coding that parameter in the XML. I tried the following and it doesn’t work. :frowning:

[xml]$body = @"
<?xml version="1.0" encoding="UTF-8"?>
<sa-rest xmlns=""
<execute-plan action-name="zz-PatchingAndReboot" prefetch="false">
**<step sequence="102" name="Dynamically%20Run%20Baselines%20from%20a%20Site">**
**   <parameter-set>**
**   <parameter name="MS%20Patch%20Maintenance">MS%20Patch%20Maintenance</parameter>**
**   </parameter-set>**
**   <target-set>**
  <computer name="SERVER1" id="14370421"/>