M
Mohammed Siraj
Guest
The second argument in this function call is incorrect i.e. "{!id}" i.e. rbf_runTrigger("Invoice28", "{!id}", "cPJe0SogQzq8uNsNqn1EqQ", false, callback, false); "{!id}" is a Rollbase token that is evaluated at runtime when used to program server-side behavior i.e. triggers,templates etc. However, on client-side you need to pass the static value while invoking the function. In an object view page, you can retreive the same using client-side SDK that is: function getRecordId(){ var recordId= -1; try{ recordId = rbf_getPageContext().getObjectRecord()['id']; } catch(err){ } return recordId; } rbf_runTrigger("Invoice28", getRecordId(), "cPJe0SogQzq8uNsNqn1EqQ", false, callback, false);
Continue reading...
Continue reading...