ReportRunResponse
The response object for a report run.
Note that not all of these keys will be present in all responses, depending on the report type.
The core data of the report is usually under the following key:
results > data > report_desc > items
This will be an array of objects, either subtotal objects or individual data objects (rows), depending on the report type and options. The base row objects usually have keys that correspond to the fields listed in:
results > data > report_desc > fields
data object
The report data. The exact format of this object will vary depending on the report type, but the following keys are typical.
report_desc object
The description of the report.
The list of actions that are disabled in the report. These are
internal UI action codes such as view-printable.
fields object[]
The list of fields that are shown in the report.
Indicates if the field can be the default subtotal field for the report.
trueIndicates if the field can be used to subtotal the chart.
trueIndicates if the field can be used for the "minor" subtotal within Charts only.
trueIndicates if the field can be used to subtotal the report rows.
trueInternal use; indicates special display logic in the report UI.
falseIndicates if report field contains URLs (links), such as attachments.
falseThe internal ID of the report field; same as the key field.
codes_tasksThe index of the field in the report; the left-most column is index 0 and increases to the right.
2Indicates if the field is an integer field.
falseIndicates if the field is an attachment field.
falseIndicates if the field is a date field.
falseIndicates if the field is a percentage field.
falseIndicates if the field is totals column.
falseThe internal ID of the report field; same as the id field.
codes_tasksThe display name of the report field.
TaskIndicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
falseIndicates if the field is a numeric field.
falseIndicates if the field is searchable.
falseIndicates if the field is currently enabled to be shown in the report.
falseIndicates if the field is sortable in the report.
falseIndicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
falsefields_amount object[]
The list of displayed fields that are Amount fields with special treatment.
Indicates if the field can be the default subtotal field for the report.
trueIndicates if the field can be used to subtotal the chart.
trueIndicates if the field can be used for the "minor" subtotal within Charts only.
trueIndicates if the field can be used to subtotal the report rows.
trueInternal use; indicates special display logic in the report UI.
falseIndicates if report field contains URLs (links), such as attachments.
falseThe internal ID of the report field; same as the key field.
codes_tasksThe index of the field in the report; the left-most column is index 0 and increases to the right.
2Indicates if the field is an integer field.
falseIndicates if the field is an attachment field.
falseIndicates if the field is a date field.
falseIndicates if the field is a percentage field.
falseIndicates if the field is totals column.
falseThe internal ID of the report field; same as the id field.
codes_tasksThe display name of the report field.
TaskIndicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
falseIndicates if the field is a numeric field.
falseIndicates if the field is searchable.
falseIndicates if the field is currently enabled to be shown in the report.
falseIndicates if the field is sortable in the report.
falseIndicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
falsefields_rank_by object[]
The list of fields that can be used as ranking / axis fields in the Chart associated with the report.
Indicates if the field can be the default subtotal field for the report.
trueIndicates if the field can be used to subtotal the chart.
trueIndicates if the field can be used for the "minor" subtotal within Charts only.
trueIndicates if the field can be used to subtotal the report rows.
trueInternal use; indicates special display logic in the report UI.
falseIndicates if report field contains URLs (links), such as attachments.
falseThe internal ID of the report field; same as the key field.
codes_tasksThe index of the field in the report; the left-most column is index 0 and increases to the right.
2Indicates if the field is an integer field.
falseIndicates if the field is an attachment field.
falseIndicates if the field is a date field.
falseIndicates if the field is a percentage field.
falseIndicates if the field is totals column.
falseThe internal ID of the report field; same as the id field.
codes_tasksThe display name of the report field.
TaskIndicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
falseIndicates if the field is a numeric field.
falseIndicates if the field is searchable.
falseIndicates if the field is currently enabled to be shown in the report.
falseIndicates if the field is sortable in the report.
falseIndicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
falseThe internal ID of the report.
DB3235A3C0914C21ACEA05B37C060912The internal ID of the user who owns the report.
9D9C3CD9096F422D8390352F6814A466This contains the core data of the report. The exact format of the data objects depends on the report type. Typically the first-level objects will be subtotal objects that then contain the actual data under that subtotal.
Typically the keys in these objects correspond to the field
names in the fields array.
outputOptions object
The formatting and display options of the report.
Indicates if the subtotal label should always be shown.
falseThe date format used in the report.
MM/DD/YYYYIndicates if the details are expanded by default.
falseThe custom HTML footer of the report.
Detailed Hours by Date ReportThe custom HTML header of the report.
Detailed Hours by Date ReportThe end date of the report in YYYYMMDD format.
20210131The start date of the report in YYYYMMDD format.
20210101Indicates if there is an expandable details that can be shown.
falseIndicates if the grand total should be shown.
trueIndicates if sub-reports should be shown. Only applicable to certain report types such as the Accrual report.
trueThe name of the report.
Detailed Hours by Date ReportThe internal Report Type code.
0supported_chart_types object[]
The internal name of the chart UI component.
UtilizationChartCardThe internal name of the chart type.
horizontal-barIndicates if the report supports charts or not.
truechart_desc object
The settings of the chart shown in the report.
The internal name of the chart UI component.
UtilizationChartCardAdditional properties of the chart.
The name of the chart.
attachments object[]
The list of attachments associated with the report.
The display name of the attachment.
The URL of the attachment to access the raw data.
A generated text description of the attachment which includes the uploader's name and time.
Indicates if the attachment is a PDF file.
trueIndicates if the attachment is an image file.
falseThe internal ID of the applicable User Time Sheet; only present for the "Timesheet Report" type.
The oldest record date in the report as a YYYYMMDD date; only included when prompting the user for free-floating report dates.
20190101The latest record date in the report as a YYYYMMDD date; only included when prompting the user for free-floating report dates.
20190131Set to prompt-free-floating if the report requires the user to
select a date range.
Indicates if the user can modify the report settings.
trueIndicates if the report enables a "Commit Records" button that marks all included records as read-only and committed to an external system.
false{
"data": {
"report_desc": {
"disableActions": [
"string"
],
"fields": [
{
"canDefaultSubtotal": true,
"canSubtotal": true,
"canSubtotalMinor": true,
"canSubtotalReport": true,
"extraSpecial": false,
"hasURL": false,
"id": "codes_tasks",
"index": 2,
"integer": false,
"isAttachmentField": false,
"isDateField": false,
"isPercentField": false,
"isTotalColumn": false,
"key": "codes_tasks",
"label": "Task",
"nonPositive": false,
"numeric": false,
"searchable": false,
"shown": false,
"sortable": false,
"truncateText": false
}
],
"fields_amount": [
{
"canDefaultSubtotal": true,
"canSubtotal": true,
"canSubtotalMinor": true,
"canSubtotalReport": true,
"extraSpecial": false,
"hasURL": false,
"id": "codes_tasks",
"index": 2,
"integer": false,
"isAttachmentField": false,
"isDateField": false,
"isPercentField": false,
"isTotalColumn": false,
"key": "codes_tasks",
"label": "Task",
"nonPositive": false,
"numeric": false,
"searchable": false,
"shown": false,
"sortable": false,
"truncateText": false
}
],
"fields_rank_by": [
{
"canDefaultSubtotal": true,
"canSubtotal": true,
"canSubtotalMinor": true,
"canSubtotalReport": true,
"extraSpecial": false,
"hasURL": false,
"id": "codes_tasks",
"index": 2,
"integer": false,
"isAttachmentField": false,
"isDateField": false,
"isPercentField": false,
"isTotalColumn": false,
"key": "codes_tasks",
"label": "Task",
"nonPositive": false,
"numeric": false,
"searchable": false,
"shown": false,
"sortable": false,
"truncateText": false
}
],
"id_report": "DB3235A3C0914C21ACEA05B37C060912",
"id_user": "9D9C3CD9096F422D8390352F6814A466",
"items": [
{}
],
"outputOptions": {
"alwaysShowSubtotalLabel": false,
"dateFormat": "MM/DD/YYYY",
"detailsExpanded": false,
"htmlFooter": "Detailed Hours by Date Report",
"htmlHeader": "Detailed Hours by Date Report",
"reportEndDate": "20210131",
"reportStartDate": "20210101",
"showDetail": false,
"showGrandTotal": true,
"showSubReports": true
},
"report_name": "Detailed Hours by Date Report",
"report_type": 0,
"supported_chart_types": [
{
"component": "UtilizationChartCard",
"name": "horizontal-bar"
}
],
"supports_charts": true
},
"chart_desc": {
"component": "UtilizationChartCard",
"extras": {},
"name": "string"
},
"attachments": [
{
"label": "string",
"url": "string",
"description": "string",
"is_pdf": true,
"is_image": false
}
]
},
"id_sheet": "string",
"oldestRecDate": "20190101",
"latestRecDate": "20190131",
"flag": "string",
"canModReport": true,
"canCommitRecords": false
}