rbf_updateRecord() callback function

Posted by nicolo.ilano on 28-Aug-2015 05:49

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

All Replies

Posted by Mohammed Siraj on 28-Aug-2015 05:59

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

}

Posted by nicolo.ilano on 28-Aug-2015 06:07

Great! Thanks!

Posted by nicolo.ilano on 28-Aug-2015 06:19

Not working, btw Im running on rollbase 3.0.3.0

Posted by Mohammed Siraj on 28-Aug-2015 06:25

Yes, it will not work on 3.0.3.

The callback mechanism was introduced with 3.1 release.

Posted by nicolo.ilano on 28-Aug-2015 06:28

Is there a way or a workaround to be able to cope up on what I need? Thanks.

Posted by Mohammed Siraj on 01-Sep-2015 06:27

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.

This thread is closed