Oracle Update Standard Field
Overview
This documentation provides details for using the updateStandardField action to update a standard field in an existing incident in Oracle Service Cloud. The updateStandardField action allows you to update a specified field with a given value or use a custom object structure for more complex updates.
Please refer to the following Oracle Documentation to ensure the data in the REST API call is correctly formated:
Inputs
| Host | String | Oracle host |
| Username | String | Oracle username |
| Password | String | Oracle password |
| IncidentId | String | ID of the incident |
| FieldLabel | String | The label of the field to be updated |
| FieldValue | String | The new value for the field |
| IsObject | Boolean | Whether the update uses a custom object structure |
| ObjectData | Object | The custom object data for the update |
Outputs
| Success | Boolean | Whether the field was successfully updated |
Examples
The following action will update the subject field of the incident with ID 3773011:
{
"host": "https://your_site.custhelp.com",
"username": "your_username",
"password": "your_password",
"incidentId": "3773011",
"fieldLabel": "subject",
"fieldValue": "New Subject from API",
"isObject": false
}
This query returns the following data:
{
"success": true
}
The following action will update the statusWithType field of the incident with ID 3773011 using a custom object structure:
{
"host": "https://your_site.custhelp.com",
"username": "your_username",
"password": "your_password",
"incidentId": "3773011",
"isObject": true,
"objectData": {
"statusWithType": {
"status": {
"id": 1,
"lookupName": "Unresolved"
}
}
}
}
This query returns the following data:
{
"success": true
}
Note that the output of Success will be false if any of the following occurs:
- The API call is unsuccessful (i.e., there is an error when making the API call), OR;
- The API call is successful (response code 200) but the response does not contain the expected data.
Updated over 1 year ago
