Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Reference > Methods for CRUD Operations >

Helper Functions for Callback Functions


Table 13 describes the helper functions that are available for callback functions.

Table 13. Helper Functions for Callback Functions
Method Name
Return Type
CRUD Operations
Description
Sample Code

getRowId()

row ID

Create, read, update

Gets the row ID of the record in the response object.

var rowID = response.getRowId();

getModId()

mod ID

Create, Read, Update

Gets the mod ID of the record in the response object.

var modId = response.getModId();

getFieldValue(fieldName)

Field value

Read

Gets the field value of the corresponding field name passed in the function.

var desc = response.getFieldValue("Description");

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.