Skip to main content

Home

Get table data in Unity app report run

Use this API to get the specific table data from the report run. It returns a paginated response. This can also be used to search or sort the table data.

Note

You will require table names to run this API. To get table names, refer to Get table names in Unity app report run.

GET http://<unity_one_url>/api/reports/tablenames/<report_name>/runs/<run_id>/tabledata/<table_name>

Request sample

content-type: application/json
{
  "draw":["1"],                             : This is used for UI. Can be ignored.
  "order[0][column]":["1"],           : Column index. Sort will be based on this column values
  "order[0][dir]":["asc"],               : Sorting order. asc/desc
  "start":["0"],                              : Starting index of the response. To paginate the response
  "length":["2"],                           : Length of the response
  "search[value]":[""],                 : Value to perform search operation
  "search[regex]":["false"]          : Regex value to perform search operation 
}

Response sample

200 OK
content-type: application/json


   [
       [
           "j-10GDV2WXZ3B5R",
           0.0,
           [
               "EMR_Release:emr-5.33.0",
               "Owner:cgn3",
               "Name:emr"
           ]
       ],
       [
           "j-P83TZ6GJOJ19",
           0.0,
           [
               "EMR_Release:emr-5.33.0",
               "Owner:cgn3",
               "Name:emr-step-test-cw"
           ]
       ]
   ]

Status codes

Code

Messages

200

OK

404

Not found, if report_name does not exist

500

Internal server error.