Use this call to retrieve Query Data report
Contact support with Query Data report name and we will provide you with parameters.
Name | Type | Description |
---|---|---|
scriptId | Int32 | Used to specify custom paged script id |
parameters | List<ScriptParameter> | Used to specify custom paged script conditional parameters |
entriesPerPage | Int32 | Used to specify number of entries per page in report |
pageNumber | Int32 | Used to specify custom paged script page number |
cancellationToken | CancellationToken | Terminates execution if task was cancelled on client |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/Dashboards/ExecuteCustomPagedScript
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
scriptId=1¶meters=[
{
"ParameterId": 1,
"Type": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"DefaultValue": "sample string 5",
"AvailableValues": [
"sample string 1"
],
"Value": {},
"SortOrder": 10
}
]&entriesPerPage=1&pageNumber=1&cancellationToken={
"IsCancellationRequested": false,
"CanBeCanceled": false,
"WaitHandle": {
"Handle": {
"value": 1292
},
"SafeWaitHandle": {
"IsInvalid": false,
"IsClosed": false
}
}
}
This is an example of the response JSON. Results will vary depending on your data.
{
"IsError": true,
"ErrorMessage": "sample string 2",
"TotalResults": 1,
"Columns": [
{
"Index": 1,
"Name": "sample string 2",
"Type": "sample string 3"
}
],
"Results": [
{
"sample string 1": {
}
}
]
}