Hello everyone, I'm trying to attach pdf file to the revenue arrangement record's communication tab and i'm using the below code
var id = revenueArrangementRecord.attach({
record: {
type: 'file',
id: fileId // file internal ID
},
record: {
type: 'REVENUE_ARRANGEMENT',
id: fileContentsArr[3] // internal ID of revenue arrangement record
}
});
this code is not working for me. could you please suggest any inputs? thanks in advance!