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.
true
Indicates if the field can be used to subtotal the chart.
true
Indicates if the field can be used for the "minor" subtotal within Charts only.
true
Indicates if the field can be used to subtotal the report rows.
true
Internal use; indicates special display logic in the report UI.
false
Indicates if report field contains URLs (links), such as attachments.
false
The internal ID of the report field; same as the key
field.
codes_tasks
The index of the field in the report; the left-most column is index 0 and increases to the right.
2
Indicates if the field is an integer field.
false
Indicates if the field is an attachment field.
false
Indicates if the field is a date field.
false
Indicates if the field is a percentage field.
false
Indicates if the field is totals column.
false
The internal ID of the report field; same as the id
field.
codes_tasks
The display name of the report field.
Task
Indicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
false
Indicates if the field is a numeric field.
false
Indicates if the field is searchable.
false
Indicates if the field is currently enabled to be shown in the report.
false
Indicates if the field is sortable in the report.
false
Indicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
false
fields_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.
true
Indicates if the field can be used to subtotal the chart.
true
Indicates if the field can be used for the "minor" subtotal within Charts only.
true
Indicates if the field can be used to subtotal the report rows.
true
Internal use; indicates special display logic in the report UI.
false
Indicates if report field contains URLs (links), such as attachments.
false
The internal ID of the report field; same as the key
field.
codes_tasks
The index of the field in the report; the left-most column is index 0 and increases to the right.
2
Indicates if the field is an integer field.
false
Indicates if the field is an attachment field.
false
Indicates if the field is a date field.
false
Indicates if the field is a percentage field.
false
Indicates if the field is totals column.
false
The internal ID of the report field; same as the id
field.
codes_tasks
The display name of the report field.
Task
Indicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
false
Indicates if the field is a numeric field.
false
Indicates if the field is searchable.
false
Indicates if the field is currently enabled to be shown in the report.
false
Indicates if the field is sortable in the report.
false
Indicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
false
fields_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.
true
Indicates if the field can be used to subtotal the chart.
true
Indicates if the field can be used for the "minor" subtotal within Charts only.
true
Indicates if the field can be used to subtotal the report rows.
true
Internal use; indicates special display logic in the report UI.
false
Indicates if report field contains URLs (links), such as attachments.
false
The internal ID of the report field; same as the key
field.
codes_tasks
The index of the field in the report; the left-most column is index 0 and increases to the right.
2
Indicates if the field is an integer field.
false
Indicates if the field is an attachment field.
false
Indicates if the field is a date field.
false
Indicates if the field is a percentage field.
false
Indicates if the field is totals column.
false
The internal ID of the report field; same as the id
field.
codes_tasks
The display name of the report field.
Task
Indicates if the field is a expected to hold negative values, which needs special treatment especially in charts.
false
Indicates if the field is a numeric field.
false
Indicates if the field is searchable.
false
Indicates if the field is currently enabled to be shown in the report.
false
Indicates if the field is sortable in the report.
false
Indicates if the text in the field should be truncated with a tooltip to see the rest, or always displayed in full.
false
The internal ID of the report.
DB3235A3C0914C21ACEA05B37C060912
The internal ID of the user who owns the report.
9D9C3CD9096F422D8390352F6814A466
This 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.
false
The date format used in the report.
MM/DD/YYYY
Indicates if the details are expanded by default.
false
The custom HTML footer of the report.
Detailed Hours by Date Report
The custom HTML header of the report.
Detailed Hours by Date Report
The end date of the report in YYYYMMDD format.
20210131
The start date of the report in YYYYMMDD format.
20210101
Indicates if there is an expandable details that can be shown.
false
Indicates if the grand total should be shown.
true
Indicates if sub-reports should be shown. Only applicable to certain report types such as the Accrual report.
true
The name of the report.
Detailed Hours by Date Report
The internal Report Type code.
0
supported_chart_types object[]
The internal name of the chart UI component.
UtilizationChartCard
The internal name of the chart type.
horizontal-bar
Indicates if the report supports charts or not.
true
chart_desc object
The settings of the chart shown in the report.
The internal name of the chart UI component.
UtilizationChartCard
Additional 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.
true
Indicates if the attachment is an image file.
false
The 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.
20190101
The latest record date in the report as a YYYYMMDD date; only included when prompting the user for free-floating report dates.
20190131
Set to prompt-free-floating
if the report requires the user to
select a date range.
Indicates if the user can modify the report settings.
true
Indicates 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
}