Get Results

URL:
https://<ReviewerResults-url>/getResults
Methods:
GET
Required Capability:
Data Reviewer Server
Version Introduced:
10.1

Description

The getResults operation queries records from REVTABLEMAIN, REVBATCHRUNTABLE and REVCHECKRUNTABLE. This operation does not return geometries but does support spatialFilters in its filtersArray parameter. Use this operation in conjunction with a Dynamic Layer and the getLayerDefinition operation to link map features to Reviewer attributes.

This operation has two parameters, queryParameters and filtersArray. filtersArray is optional. If filtersArray is unset, all information is returned according to the setting specified in queryParameters.

This operation returns a non-spatial featureset. A featureset is a JSON object that contains a list of fields aliases, fields, and field values. See the ArcGIS Data Reviewer REST API reference to learn more about the structure of a featureset.

Results are paged. You specify the number of results per page with the pageSize queryParameter. You specify which page in the result set to return with the pageNumber queryParameter. You specify which fields to include in the featureset with the returnFields queryParameter.

queryParameters is a JSON object that contains the following key-value pairs:

  • pageSize: The number of items to list on a page. Specify a value between 1-1000. This pair is required.

  • pageNumber: The page number, zero based index, of the results to return. This pair is required.

  • returnFields: Optional JSON array of field names. Use " * " to indicate ALL. Valid fields include:

    • recordId
    • objectId
    • subtype
    • category
    • sessionId
    • checktitle
    • resourceName
    • checkName
    • notes
    • severity
    • reviewStatus
    • reviewTechnician
    • correctionTechnician
    • verificationTechnician
    • reviewDateUtc
    • correctionDateUtc
    • verificationDateUtc
    • lifecycleStatus
    • lifecyclePhase
  • sortBy: Optional. Indicates a field name by which to sort. The field must be included in returnFields if set.

  • sortDescending: Optional. Controls sort order. Default is false.

Request parameters

ParameterDetails

queryParameters

The JSON object that contains key-value pairs that control the number of items per page, page number, fields and sort order.

filtersArray

An array of filters. A filter is a JSON structure. Filters limit the number of features retrieved from the server to a specified criteria. Filters are similar in functionality to a SQL where clause.

f

The response format. The default response format is html.

Values: html | json

Example usage

Example 1: Retrieve results from all the fields on page 1, limiting the page size to five items, sorting by objectId in descending order.

Use dark colors for code blocksCopy
1
https://localhost:6443/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/getResults?queryParameters={"pageSize":5,"pageNumber":1,"sortyBy":"objectid","returnFields":["*"],"sortDescending":true}&filtersArray=&f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{
 "fieldAliases": {
  "recordId": "RecordId",
  "objectId": "ObjectId",
  "subtype": "Subtype",
  "category": "Category",
  "sessionId": "SessionId",
  "checktitle": "Checktitle",
  "resourceName": "ResourceName",
  "checkName": "CheckName",
  "notes": "Notes",
  "severity": "Severity",
  "reviewStatus": "ReviewStatus",
  "reviewTechnician": "ReviewTechnician",
  "correctionTechnician": "CorrectionTechnician",
  "verificationTechnician": "VerificationTechnician",
  "reviewDateUtc": "ReviewDateUtc",
  "correctionDateUtc": "CorrectionDateUtc",
  "verificationDateUtc": "VerificationDateUtc",
  "lifecycleStatus": "LifecycleStatus",
  "lifecyclePhasee": "LifecyclePhase"
 },
 "fields": [
  {
   "name": "recordId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "objectId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "subtype",
   "type": "esriFieldTypeString"
  },
  {
   "name": "category",
   "type": "esriFieldTypeString"
  },
  {
   "name": "sessionId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "checktitle",
   "type": "esriFieldTypeString"
  },
  {
   "name": "resourceName",
   "type": "esriFieldTypeString"
  },
  {
   "name": "checkName",
   "type": "esriFieldTypeString"
  },
  {
   "name": "notes",
   "type": "esriFieldTypeString"
  },
  {
   "name": "severity",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "reviewStatus",
   "type": "esriFieldTypeString"
  },
  {
   "name": "reviewTechnician",
   "type": "esriFieldTypeString"
  },
  {
   "name": "correctionTechnician",
   "type": "esriFieldTypeString"
  },
  {
   "name": "verificationTechnician",
   "type": "esriFieldTypeString"
  },
  {
   "name": "reviewDateUtc",
   "type": "esriFieldTypeDate"
  },
  {
   "name": "correctionDateUtc",
   "type": "esriFieldTypeDate"
  },
  {
   "name": "verificationDateUtc",
   "type": "esriFieldTypeDate"
  },
  {
   "name": "lifecycleStatus",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "lifecyclePhase",
   "type": "esriFieldTypeInteger"
 	}
 ],
 "features": [
  {
   "attributes": {
    "recordId": 291,
    "objectId": 7927,
    "subtype": "",
    "category": "Feature Record",
    "sessionId": 1,
    "checktitle": "Orphan Storm Manholes",
    "resourceName": "swManhole",
    "checkName": "Geometry on Geometry Check",
    "notes": "",
    "severity": 2,
    "reviewStatus": "Point does not intersect polyline",
    "reviewTechnician": "homer",
    "correctionTechnician": null,
    "verificationTechnician": null,
    "reviewDateUtc": 1351648012000,
    "correctionDateUtc": null,
    "verificationDateUtc": null,
    "lifecycleStatus": 1,
    "lifecyclePhase": 2
   }
  },
  {
   "attributes": {
    "recordId": 290,
    "objectId": 7926,
    "subtype": "",
    "category": "Feature Record",
    "sessionId": 1,
    "checktitle": "Orphan Storm Manholes",
    "resourceName": "swManhole",
    "checkName": "Geometry on Geometry Check",
    "notes": "",
    "severity": 2,
    "reviewStatus": "Point does not intersect polyline",
    "reviewTechnician": "homer",
    "correctionTechnician": null,
    "verificationTechnician": null,
    "reviewDateUtc": 1351648012000,
    "correctionDateUtc": null,
    "verificationDateUtc": null,
    "lifecycleStatus": 1,
    "lifecyclePhase": 2
   }
  },
  {
   "attributes": {
    "recordId": 289,
    "objectId": 7924,
    "subtype": "",
    "category": "Feature Record",
    "sessionId": 1,
    "checktitle": "Orphan Storm Manholes",
    "resourceName": "swManhole",
    "checkName": "Geometry on Geometry Check",
    "notes": "",
    "severity": 2,
    "reviewStatus": "Point does not intersect polyline",
    "reviewTechnician": "homer",
    "correctionTechnician": null,
    "verificationTechnician": null,
    "reviewDateUtc": 1351648012000,
    "correctionDateUtc": null,
    "verificationDateUtc": null,
    "lifecycleStatus": 1,
    "lifecyclePhase": 2
   }
  },
  {
   "attributes": {
    "recordId": 288,
    "objectId": 7922,
    "subtype": "",
    "category": "Feature Record",
    "sessionId": 1,
    "checktitle": "Orphan Storm Manholes",
    "resourceName": "swManhole",
    "checkName": "Geometry on Geometry Check",
    "notes": "",
    "severity": 2,
    "reviewStatus": "Point does not intersect polyline",
    "reviewTechnician": "homer",
    "correctionTechnician": null,
    "verificationTechnician": null,
    "reviewDateUtc": 1351648012000,
    "correctionDateUtc": null,
    "verificationDateUtc": null,
    "lifecycleStatus": 1,
    "lifecyclePhase": 2
   }
  },
  {
   "attributes": {
    "recordId": 287,
    "objectId": 7919,
    "subtype": "",
    "category": "Feature Record",
    "sessionId": 1,
    "checktitle": "Orphan Storm Manholes",
    "resourceName": "swManhole",
    "checkName": "Geometry on Geometry Check",
    "notes": "",
    "severity": 2,
    "reviewStatus": "Point does not intersect polyline",
    "reviewTechnician": "homer",
    "correctionTechnician": null,
    "verificationTechnician": null,
    "reviewDateUtc": 1351648012000,
    "correctionDateUtc": null,
    "verificationDateUtc": null,
    "lifecycleStatus": 1,
    "lifecyclePhase": 2
   }
  }
 ]
}

Example 2: Retrieve results from 3 fields on page 1, limiting the page size to 5 items, filtering for severities equal to 5:

Use dark colors for code blocksCopy
1
https://localhost:6443/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/getResults?queryParameters={"pageSize":5,"pageNumber":1,"returnFields":["recordId","resourceName","sessionId"]}&filtersArray={"filtersArray":[{"singleAttributeFilter":[{"fieldValue":5,"fieldName":"severity"}]}]}&f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
 "fieldAliases": {
  "recordId": "RecordId",
  "resourceName": "ResourceName",
  "sessionId": "SessionId"
 },
 "fields": [
  {
   "name": "recordId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "resourceName",
   "type": "esriFieldTypeString"
  },
  {
   "name": "sessionId",
   "type": "esriFieldTypeInteger"
  }
 ],
 "features": [
  {
   "attributes": {
    "recordId": 14,
    "resourceName": "Landmarks",
    "sessionId": 2
   }
  },
  {
   "attributes": {
    "recordId": 15,
    "resourceName": "Landmarks",
    "sessionId": 2
   }
  },
  {
   "attributes": {
    "recordId": 16,
    "resourceName": "Landmarks",
    "sessionId": 2
   }
  },
  {
   "attributes": {
    "recordId": 17,
    "resourceName": "Landmarks",
    "sessionId": 2
   }
  },
  {
   "attributes": {
    "recordId": 18,
    "resourceName": "Landmarks",
    "sessionId": 2
   }
  }
 ]
}

Example 3: Return 1 result from page 0, from fields ObjectId , SessionId , Severity , resourceName , ReviewStatus , ReviewTechnician , and Notes .

Use dark colors for code blocksCopy
1
https://localhost:6443/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/ReviewerResults/getResults?queryParameters={"pageSize":"1","pageNumber":"0","returnFields":["ObjectId","SessionId","Severity","resourceName","ReviewStatus","ReviewTechnician","Notes"]}&filtersArray=&f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
 "fieldAliases": {
  "objectId": "ObjectId",
  "sessionId": "SessionId",
  "severity": "Severity",
  "resourceName": "ResourceName",
  "reviewStatus": "ReviewStatus",
  "reviewTechnician": "ReviewTechnician",
  "notes": "Notes"
 },
 "fields": [
  {
   "name": "objectId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "sessionId",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "severity",
   "type": "esriFieldTypeInteger"
  },
  {
   "name": "resourceName",
   "type": "esriFieldTypeString"
  },
  {
   "name": "reviewStatus",
   "type": "esriFieldTypeString"
  },
  {
   "name": "reviewTechnician",
   "type": "esriFieldTypeString"
  },
  {
   "name": "notes",
   "type": "esriFieldTypeString"
  }
 ],
 "features": [
  {
   "attributes": {
    "objectId": 35631,
    "sessionId": 1,
    "severity": 1,
    "resourceName": "ssTap",
    "reviewStatus": "Value is not unique:FACILITYID,  ",
    "reviewTechnician": "roberts",
    "notes": ""
   }
  }
 ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.