Service Help – EntryFormHistory
The Sharperlight service offers a wide variety of presentation methods, each with its own set of parameters.
In this post, we will introduce the following method from among the various presentation methods available.
http://abcd.com/mdService1Rest/EntryFormHistory/…
EntryFormHistory
To see this information with your sharperlight service help
{sharperlight service url}/Help#EntryFormHistory
{sharperlight service url}/Help#EntryFormHistory
|
Get the writeback status, stats and response details which include errors. This is always used after first calling EntryFormHistoryPost Site Setup can be setup to auto delete successful writebacks in which case the error message will start with ERROR: NOT FOUND JSON RESPONSE – RUN (Still Processing)
{
“errorMessage”:””
,”historyId”:239463
,”status”:”RUN”
,”mode”:””
,”batchId”:””
,”startDateTimeUtc”:”2019-12-05T01:25:13.427Z”
,”finishDateTimeUtc”:null
,”seconds”:-1
,”recordCount”:0
,”recordsAffected”:0
,”productCode”:”ASYNC_WAIT”
,”superField”:””
,”tableCode”:””
,”userName”:”admin”
,”uniqueId”:”23efe3f0-865a-478c-af85-413f8ea1f758″
,”response”:null
}
JSON RESPONSE – OK
{
“errorMessage”:””
,”historyId”:239444
,”status”:”OK”
,”mode”:”UPDATE”
,”batchId”:”MyID1575506957694″
,”startDateTimeUtc”:”2019-12-05T00:49:21.243Z”
,”finishDateTimeUtc”:”2019-12-05T00:49:22.230Z”
,”seconds”:1
,”recordCount”:3
,”recordsAffected”:3
,”productCode”:”SLF90008″
,”superField”:””
,”tableCode”:”Brand”
,”userName”:”admin”
,”uniqueId”:”60308c9d-fabf-4e44-b302-cf726f8a0b49″
,”response”:{“batchIndex”:-1,”errorMessageGeneral”:””,”historyId”:239444,”items”:[],”message”:””,”recordId”:-1,”recordsAffected”:1,”tag”:null}
}
JSON RESPONSE – ERROR
{
“errorMessage”: “”,
“historyId”: 240850,
“status”: “ERROR”,
“mode”: “UPDATE”,
“batchId”: “MyID1576054081946”,
“startDateTimeUtc”: “2019-12-11T08:48:13.553Z”,
“finishDateTimeUtc”: “2019-12-11T08:48:21.023Z”,
“seconds”: 8,
“recordCount”: 3,
“recordsAffected”: 0,
“productCode”: “SLF90008”,
“superField”: “”,
“tableCode”: “Brand”,
“userName”: “admin”,
“uniqueId”: “605ff4b6-f2fd-4f4c-b324-6db3d6af7a2d”,
“response”: {
“batchIndex”: -1,
“errorMessageGeneral”: “The value exceeds the maximum length of 50.”,
“historyId”: 240850,
“items”: [
{
“batchNo”: 3,
“category”: 1,
“colIndex”: 0,
“description”: “The value exceeds the maximum length of 50.”,
“fieldCode”: “/Code”,
“rowIndex”: 0,
“tableCode”: “Brand”,
“tag”: null
}
],
“message”: “”,
“recordId”: -1,
“recordsAffected”: 0,
“tag”: null
}
}
|
|
| historyId=[id] |
Get the writeback status record that matches the historyId. This historyId is returned in the respose when calling /EntryFormHistoryPost e.g. historyId=1234 |
