M
Meryk
Guest
Hello, I have a File Upload field in an object myObject and I am trying to remove a file upload from a given record from a trigger. How can I achieve that please? I tried doing rbf_updateRecord() this way, but it doesn't work. var arr= []; var emptyObject = {} arr['fileUploadField'] = emptyObject; rbv_api.updateRecord('myObject', myRecordId , arr); I also came accross this method : rbv_api.setBinaryFieldValue(objName, objId, fieldname, encodedValue, contentType, fileName). That looks like the one to be used to set a file. But can I use it to remove the existing file upload in the record? Thank you Meryem
Continue reading...
Continue reading...