Start

Run a Data viewer report (view)

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areadataviewer.json
ActionYesThe action to performaction=start
StyleNoOptional styles of data (see below for simplified response structure by using style-data option)style=data, style=pivot
WaitNoTime, in seconds, to wait for a response (max 30 seconds)wait=10
ViewYesStored filter appliedview=46136Using views
FiltersNoFilter by a key fielddatefrom=2020-04-01Filters
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview

To get the view ID
This can be seen in Synergist file maintenance under "Table of views". Or alternatively you can access this via an API call. See Data viewer views

Example request:_

Passing no "wait" parameter - user then makes a "Check status" call to get the data:

http://<SERVER>/jsonapi/dataviewer.json?user=user&password=user&version=3.9&action=start&datefrom=2020-04-01&view=46136

Passing the "wait" parameter:

Note: No need to call "Check status"

http://<SERVER>/jsonapi/dataviewer.json?user=user&password=user&version=3.9&action=start&datefrom=2020-04-01&view=46136&wait=10

Example response (standard JSON output structure):

EXAMPLE 1: Passing no "wait" parameter - user then makes a "Check status" call to get the data
{
"taskID": 12549,
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "",
"warningmessage": "",
"success": true,
"synversion": "12.90029",
"synapiversion": 3.9
}


EXAMPLE 2: Passing the "wait" parameter ... the data is returned after the number of seconds specified

{
"taskID": 15923,
"status": "DONE0",
"result": {
"DataTable": {
"Columns": [
{
"Heading": "Charge code",
"Section": "Keys",
"Type": "Text",
"ColSpans": [
1
]
},
{
"Heading": "Data type",
"Section": "Keys",
"Type": "Text",
"ColSpans": [
1
]
},
{
"Heading": "10/10/2022 - 31/10/2022",
"Section": "Values",
"Type": "Numeric",
"ColSpans": [
1
]
},
{
"Heading": "Nov 22",
"Section": "Values",
"Type": "Numeric",
"ColSpans": [
1
]
},
{
"Heading": "Dec 22",
"Section": "Values",
"Type": "Numeric",
"ColSpans": [
1
]
},
{
"Heading": "Total",
"Section": "Totals",
"Type": "Numeric",
"ColSpans": [
1
]
}
],
"Rows": [
{
"RowType": "Body",
"RowData": [
"Artwork",
"Time Estimate",
"1.00",
"0.00",
"0.00",
"1.00"
]
},
{
"RowType": "Body",
"RowData": [
"Artwork hours",
"Time Estimate",
"3.22",
"0.27",
"0.00",
"3.49"
]
},
{
"RowType": "Body",
"RowData": [
"charge",
"Time Estimate",
"3.00",
"0.00",
"0.00",
"3.00"
]
},
{
"RowType": "Body",
"RowData": [
"Client Services",
"Time Estimate",
"21.26",
"0.00",
"0.00",
"21.26"
]
},
{
"RowType": "Body",
"RowData": [
"Copy Writing",
"Time Estimate",
"0.02",
"0.03",
"0.03",
"0.08"
]
},
{
"RowType": "Body",
"RowData": [
"CR=0 + CCT = Blank + ET=Hol",
"Time Estimate",
"1.00",
"0.00",
"0.00",
"1.00"
]
},
{
"RowType": "Body",
"RowData": [
"CR=200+CCT=Activity+ET=Other",
"Time Estimate",
"2.00",
"0.00",
"0.00",
"2.00"
]
},
{
"RowType": "Body",
"RowData": [
"External jobs only CharCode 2",
"Time Estimate",
"2.00",
"0.00",
"0.00",
"2.00"
]
},
{
"RowType": "Body",
"RowData": [
"High Level Design",
"Time Estimate",
"0.00",
"0.00",
"10.00",
"10.00"
]
},
{
"RowType": "Body",
"RowData": [
"kjldsvlkjb",
"Time Estimate",
"0.73",
"0.14",
"0.00",
"0.87"
]
},
{
"RowType": "Body",
"RowData": [
"Post Production",
"Time Estimate",
"3.81",
"0.00",
"0.00",
"3.81"
]
},
{
"RowType": "Body",
"RowData": [
"Printing",
"Time Estimate",
"12.46",
"0.27",
"0.00",
"12.73"
]
},
{
"RowType": "Body",
"RowData": [
"prog",
"Time Estimate",
"0.73",
"0.14",
"0.00",
"0.87"
]
},
{
"RowType": "Body",
"RowData": [
"SPV-9407 te",
"Time Estimate",
"5.00",
"0.00",
"0.00",
"5.00"
]
},
{
"RowType": "Totals",
"RowData": [
"TOTALS",
"",
"56.23",
"0.85",
"10.03",
"67.11"
]
}
],
"HeadingRows": 1
},
"ResultText": "",
"WarningText": ""
},
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "",
"warningmessage": "",
"success": true,
"synversion": "12.960.0056",
"synapiversion": 3.95
}


xxx

Example response using the "style=data" option (simplified JSON output structure):_


{
"taskID": 40528,
"status": "DONE0",
"result": {
"DataTable": [
{
"Client": "3D Animatronics B2B",
"Data type": "Time Estimate",
"BusinessStatusCode": "NB",
"Value": 47.5
},
{
"Client": "Accounting Solutions for Business",
"Data type": "Time Estimate",
"BusinessStatusCode": "NB",
"Value": 52
},
{
"Client": "Ace Electronic",
"Data type": "Time Estimate",
"BusinessStatusCode": "NB",
"Value": 363.954
},
{
"Client": "Aecom Inc",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 93.5
},
{
"Client": "Aegon Uk Ltd",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 202
},
{
"Client": "Air Products",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 583.5
},
{
"Client": "Albemarle",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 2
},
{
"Client": "Alcoa & sons Ltd",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 24.501
},
{
"Client": "Auto created internal client for Outlook bookings",
"Data type": "Time Estimate",
"BusinessStatusCode": "NB",
"Value": 0
},
{
"Client": "Internal",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 0.06
},
{
"Client": "Jenko Limited",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 156.401
},
{
"Client": "Top Store",
"Data type": "Time Estimate",
"BusinessStatusCode": "RB",
"Value": 111.687
}
],
"ResultText": "",
"WarningText": ""
},
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "",
"warningmessage": "",
"success": true,
"synversion": "13.010.0093",
"synapiversion": 4.01
}
xxx