Custom Post
The custom method PostCustomInfo executes a custom script in the database.
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostCustomInfo |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostCustomInfo" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| CustomInfoScriptName | String(50) | Yes | Name of the custom method configured in the database |
| CustomInfoParameterList | CustomInfoParameterList | No | List of objects with the script execution parameters |
📝 CustomInfoParameter Object
The CustomInfoParameter object represents a parameter for executing the custom script.
Input Parameters
Parameter Type Required Description ParamName String(30) Yes Custom parameter name ParamValue String(50) Yes Custom parameter value ParamType CustomInfoParamType No Enumerator with possible values for Parameter Type ( cipNotAssigned,cipString,cipNumeric,cipDateTime)
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information in method execution |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostCustomInfo"' \
--header 'Content-Type: application/json' \
--data '{
"CustomInfoScriptName": "UpdateSalesOrderAdditionalInfo",
"CustomInfoParameterList": [
{
"ParamName": "BranchNo",
"ParamValue": "0102",
"ParamType": "cipString"
},
{
"ParamName": "SalesOrderNo",
"ParamValue": "9DNTRF",
"ParamType": "cipString"
},
{
"ParamName": "AnticipatedBilling",
"ParamValue": "N",
"ParamType": "cipString"
},
{
"ParamName": "VehiclePlateNo",
"ParamValue": "BWG135",
"ParamType": "cipString"
}
]
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}