FRAMES | NO FRAMES Description | Parameters | Examples | Response
Generate Report (Operation)
URL http://<report-url>/generate
Parent Resource Report

Description

Executes a report and returns the output as formatted HTML.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json | file

This parameter must be set to file for 10.1 onwards in order to receive the raw HTML content of the generated report, not wrapped in JSON.
user Required
Description: The username of the client.
timeZoneOffset Description: The time zone offset from UTC (in minutes) of the client's system. This parameter affects the formatting of date/time values within a report.

Example Usage

Example 1: URL to generate a formatted report and return the HTML content wrapped in a JSON payload.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/reports/3/generate?user=cjones&f=json

Example 2: 10.0 URL to generate a formatted report and return the raw HTML content.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/reports/3/generate?user=cjones&f=html

Example 3: 10.1 URL to generate a formatted report and return the raw HTML content.

http://sampleserver/arcgis/rest/services/Workflow/WMServer/reports/3/generate?user=cjones&f=file

JSON Response Syntax

{
  "reportContent": "<reportContent>"
}

JSON Response Example

{
  "reportContent": "<html><body>...</body></html>"
}