Running, printing, and viewing a document : Working with a resource group : Assigning a report to a resource group
 
Assigning a report to a resource group
You can assign a report to a resource group when you run the report. You must use ExecuteReport and specify the resource group in the optional TargetResourceGroup element of the SOAP header. You can use TargetResourceGroup only to generate a synchronous report.
 
<SOAP-ENV:Header>
<TargetVolume>end00166</TargetVolume>
<AuthId>+4yxAKHFJg9FY0JssYijJI5XvkJqDOeA8=</AuthId>
<TargetResourceGroup>Priority Sync</TargetResourceGroup>
<Locale>en_US</Locale>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ExecuteReport>
<JobName>TRANSIENT_JOB</JobName>
<InputFileId>90</InputFileId>
<SaveOutputFile>true</SaveOutputFile>
<RequestedOutputFile>
<Name>/mltd.rptdocument</Name>
<ArchiveRule>
<FileType>rptdocument</FileType>
</ArchiveRule>
</RequestedOutputFile>
<ProgressiveViewing>true</ProgressiveViewing>
<WaitTime>20</WaitTime>
</ExecuteReport>
</SOAP-ENV:Body>
The preceding request returns a ConnectionHandle, the status of the report generation, an object ID, and the output file type.
<SOAP-ENV:Header>
<ConnectionHandle>g7whmBpcJkcHwxpUC6qxppw=
</ConnectionHandle>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ExecuteReportResponse>
<Status>FirstPage</Status>
<OutputFileType>RPTDOCUMENT</OutputFileType>
<ObjectId>93</ObjectId>
<ConnectionHandle>g7whmBpcJcJkcHwxpUC6qxppw=
</ConnectionHandle>
</ExecuteReportResponse>
</SOAP-ENV:Body>