GET /api/.../reports/execution?reportName={name}&reportPath={path}&reportParameters={parameters}&reportFormat={format}&save=false
The execution endpoint allows Polaris to set report parameters and generate reports in multiple formats (ie: PDF).
Note: The branch profile's "Report Server Setup" must specify an override account for Report Server authentication.
Name | Type | Required | Description |
---|---|---|---|
reportName | string | Yes |
Name of the report.
|
reportPath | string | Yes |
Path of the report.
|
reportParameters | string | Yes |
Report parameters. Pipe delimited.
|
reportFormat | string | Yes |
Valid formats are:
|
save | boolean | No |
Temporarily save report on server. Folder: App_Data\Reports\{tenant}\Users\{userid} Valid values:
|
https://server.polarislibrary.com/Polaris.ApplicationServices/api/v1/eng/20/polaris/3/1218/reports/execution?reportName=Expired%20Patrons&reportPath=%2FPublic%20Services%2FPatron%20Services%2F&reportParameters=GIS_MS_OrganizationList%3D3%7CGIS_MS_OrganizationList%3D5%7CdtExpiredBeginDate%3D1%2F1%2F2017&reportFormat=PDF
RAW PDF DATA
Code | Description |
---|---|
200 | OK. Success |
GET /api/.../reports/management?action={action}&reportName={name}&reportPath={path}
The management endpoint allows the caller to query the report server to retrieve lists of reports and report parameters.
The 'listrecent' action retrieves recently executed reports based on the logged on user.
The 'getrecent' action retrieves a recently executed report based on the logged on user and report file ID. The file name used should be one returned from the 'listrecent' action and will look like 'Combined Notice Half Page Mail_pdf'.
Note: The branch profile's "Report Server Setup" must specify an override account for Report Server authentication.
Name | Type | Required | Description |
---|---|---|---|
action | string | Yes |
Valid actions are:
|
reportName | string | No |
Name of the report.
|
reportPath | string | No |
Path of the report.
|
https://young-lt2.polarislibrary.com/Polaris.ApplicationServices/api/v1/eng/20/polaris/3/1233/reports/management?action=list&reportPath=%2FPolaris%2FSystem%2FInternal%2F
{
"ServerInfoHeader": {
"ReportServerVersionNumber": "2015.130.4001.00",
"ReportServerEdition": "Developer",
"ReportServerVersion": "Microsoft SQL Server Reporting Services Version 13.0.4001.0",
"ReportServerDateTime": "2020-02-21T08:34:17",
"AnyAttr": null
},
"CatalogItems": [
{
"ID": "02a832c8-1a92-4095-ad3c-5a0e4596a3e5",
"Name": "Authority Create Links Job",
"Path": "/Polaris/System/Internal/Authority Create Links Job",
"VirtualPath": null,
"Type": 2,
"Size": 49423,
"SizeSpecified": true,
"Description": null,
"HiddenSpecified": false,
"CreationDate": "2020-01-10T00:58:13.627-05:00",
"CreationDateSpecified": true,
"ModifiedDate": "2020-01-10T00:58:13.627-05:00",
"ModifiedDateSpecified": true,
"CreatedBy": "DOMAIN\\Polaris.User",
"ModifiedBy": "DOMAIN\\Polaris.User",
"MimeType": null,
"ExecutionDateSpecified": false
},
{
"ID": "a543d05b-dd47-4716-a5a4-1ede5ed6df58",
"Name": "Item Record Set",
"Path": "/Polaris/System/Internal/Item Record Set",
"VirtualPath": null,
"Type": 2,
"Size": 56751,
"SizeSpecified": true,
"Description": null,
"HiddenSpecified": false,
"CreationDate": "2020-01-10T00:58:33.173-05:00",
"CreationDateSpecified": true,
"ModifiedDate": "2020-01-10T00:58:33.173-05:00",
"ModifiedDateSpecified": true,
"CreatedBy": "DOMAIN\\Polaris.User",
"ModifiedBy": "DOMAIN\\Polaris.User",
"MimeType": null,
"ExecutionDateSpecified": false
},
{
"ID": "52eb6311-01cc-4777-be2c-3538dd400951",
"Name": "Items Out By Patron",
"Path": "/Polaris/System/Internal/Items Out By Patron",
"VirtualPath": null,
"Type": 2,
"Size": 28266,
"SizeSpecified": true,
"Description": null,
"HiddenSpecified": false,
"CreationDate": "2020-01-10T00:58:34.33-05:00",
"CreationDateSpecified": true,
"ModifiedDate": "2020-01-10T00:58:34.33-05:00",
"ModifiedDateSpecified": true,
"CreatedBy": "DOMAIN\\Polaris.User",
"ModifiedBy": "DOMAIN\\Polaris.User",
"MimeType": null,
"ExecutionDateSpecified": false
}
]
}
https://young-lt2.polarislibrary.com/Polaris.ApplicationServices/api/v1/eng/20/polaris/3/1242/reports/management?action=listrecent
[
{
"Filename": "Combined Notice Half Page Mail_pdf",
"CreationDate": "2020-07-12T17:56:46.6980483-04:00"
},
{
"Filename": "Combined Notice Z Fold Mailer_pdf",
"CreationDate": "2020-07-12T18:01:01.6775417-04:00"
}
]
https://server.polarislibrary.com/Polaris.ApplicationServices/api/v1/eng/20/polaris/3/1233/reports/management?action=getReportParameters&reportName=ORSSelectionList&reportPath=%2FPolaris%2FSystem%2FInternal%2F
{
"ServerInfoHeader": {
"ReportServerVersionNumber": "2015.130.4001.00",
"ReportServerEdition": "Developer",
"ReportServerVersion": "Microsoft SQL Server Reporting Services Version 13.0.4001.0",
"ReportServerDateTime": "2020-02-21T08:38:13",
"AnyAttr": null
},
"Parameters": [
{
"Name": "GIS_NP_PatronID",
"Type": 2,
"TypeSpecified": true,
"Nullable": false,
"NullableSpecified": true,
"AllowBlank": false,
"AllowBlankSpecified": true,
"MultiValue": false,
"MultiValueSpecified": true,
"QueryParameter": true,
"QueryParameterSpecified": true,
"Prompt": "PatronID:",
"PromptUser": true,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": false,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": null,
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": [
"5"
],
"State": 0,
"StateSpecified": true,
"ErrorMessage": null
},
{
"Name": "GIS_NP_LogonBranchID",
"Type": 2,
"TypeSpecified": true,
"Nullable": false,
"NullableSpecified": true,
"AllowBlank": true,
"AllowBlankSpecified": true,
"MultiValue": false,
"MultiValueSpecified": true,
"QueryParameter": true,
"QueryParameterSpecified": true,
"Prompt": "LogonBranchID",
"PromptUser": true,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": false,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": null,
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": [
"9"
],
"State": 0,
"StateSpecified": true,
"ErrorMessage": null
},
{
"Name": "GIS_MS_OrganizationID",
"Type": 2,
"TypeSpecified": true,
"Nullable": false,
"NullableSpecified": true,
"AllowBlank": false,
"AllowBlankSpecified": true,
"MultiValue": true,
"MultiValueSpecified": true,
"QueryParameter": false,
"QueryParameterSpecified": true,
"Prompt": "Item Assigned Branches:",
"PromptUser": true,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": true,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": [
{
"Label": "3MBranch (3MBr)",
"Value": "435"
},
{
"Label": "Branch A Area Public Library (BA)",
"Value": "395"
},
{
"Label": "Branch B Free Library (BB)",
"Value": "3"
},
{
"Label": "Branch C Free Library (BC)",
"Value": "5"
}
],
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": null,
"State": 1,
"StateSpecified": true,
"ErrorMessage": null
},
{
"Name": "GIS_MS_OrganizationIDString",
"Type": 4,
"TypeSpecified": true,
"Nullable": true,
"NullableSpecified": true,
"AllowBlank": true,
"AllowBlankSpecified": true,
"MultiValue": false,
"MultiValueSpecified": true,
"QueryParameter": true,
"QueryParameterSpecified": true,
"Prompt": "GIS_MS_OrganizationIDString",
"PromptUser": true,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": false,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": null,
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": [
null
],
"State": 0,
"StateSpecified": true,
"ErrorMessage": null
},
{
"Name": "GIS_SORTING",
"Type": 4,
"TypeSpecified": true,
"Nullable": false,
"NullableSpecified": true,
"AllowBlank": false,
"AllowBlankSpecified": true,
"MultiValue": false,
"MultiValueSpecified": true,
"QueryParameter": true,
"QueryParameterSpecified": true,
"Prompt": "Sort Options:",
"PromptUser": true,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": false,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": null,
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": [
"[Call Number],Collection,Title"
],
"State": 0,
"StateSpecified": true,
"ErrorMessage": null
},
{
"Name": "GIS_SORTINGNUM",
"Type": 2,
"TypeSpecified": true,
"Nullable": false,
"NullableSpecified": true,
"AllowBlank": true,
"AllowBlankSpecified": true,
"MultiValue": false,
"MultiValueSpecified": true,
"QueryParameter": false,
"QueryParameterSpecified": true,
"Prompt": "GIS_SORTINGNUM:",
"PromptUser": false,
"PromptUserSpecified": true,
"Dependencies": null,
"ValidValuesQueryBased": false,
"ValidValuesQueryBasedSpecified": true,
"ValidValues": null,
"DefaultValuesQueryBased": false,
"DefaultValuesQueryBasedSpecified": true,
"DefaultValues": [
"2"
],
"State": 0,
"StateSpecified": true,
"ErrorMessage": null
}
]
}
Code | Description |
---|---|
200 | OK. Success |
400 | Bad request |