Running, printing, and viewing a document : Working with a resource group : Assigning a job to a resource group
 
Assigning a job to a resource group
You can assign a job to a resource group when you submit the job or update a job schedule. Use SubmitJob or UpdateJobSchedule to set properties as you would for any other job. Use the ResourceGroup element to assign the job to a resource group. The following example shows how to set the resource group using SubmitJob:
<SOAP-ENV:Body>
<SubmitJob>
<JobName>OrderUpdates</JobName>
<Priority>500</Priority>
<ResourceGroup>Priority Async</ResourceGroup>
<InputFileId>90</InputFileId>
<RunLatestVersion>true</RunLatestVersion>
<RequestedOutputFile>
<Name>/OrderUpdates.rptdocument</Name>
</RequestedOutputFile>
<Operation>RunReport</Operation> <ParameterValues>
<ParameterValue>
<Name>NewReportApp::OrderInput::orders_orderID</Name>
<Value>1645</Value>
</ParameterValue>
</ParameterValues>
<Schedules>
<TimeZoneName>Pacific Standard Time</TimeZoneName>
<ScheduleDetails>
<JobScheduleDetail>
</JobScheduleDetail>
</ScheduleDetails>
</Schedules>
<NotifyUsersByName>
<String>Carl Jacobs</String>
</NotifyUsersByName>
</SubmitJob>
</SOAP-ENV:Body>
The response to SubmitJob is the JobId.
<SOAP-ENV:Body>
<SubmitJobResponse>
<JobId>46</JobId>
</SubmitJobResponse>
</SOAP-ENV:Body>