I was wondering if there is a way that I can invoke a callback function after an rbf_updateRecord(). I've been reading the documents and I cant seem to find out how to do this. Please help. Thank you.
System Info > Release: 3.0.3.0
This is the signature of rbf_updateRecord function:
/*****************************************
Update existing record
objName: integration name of object
id: ID of record
fieldMap: array: key= field name, value= field's value
useIds: if true, API will accept numeric ids, if false (default) - integration codes
callback: callback function (optional). It will receive ID of updated created record.
******************************************/
function rbf_updateRecord(objName, id, fieldMap, useIds, callback) {
//implementation
}
Great! Thanks!
Not working, btw Im running on rollbase 3.0.3.0
Yes, it will not work on 3.0.3.
The callback mechanism was introduced with 3.1 release.
Is there a way or a workaround to be able to cope up on what I need? Thanks.
Apologies, had missed out replying on this post earlier.
As you are looking for a callback on record update via rbf_updateRecord API, the only way to get it working is updating the function definition. Request you to consider upgrading to latest version.
As a last effort to get it to work, can you type window.rbf_updateRecord in your browser console (F12 to display browser console) & share the result.