Trevor McLean
02/05/2019, 6:06 PMtask.attach({
record: {
type: file.Type.TASK,
id: taskId
},
to: {
type: file.Type.LEAD,
id: attachToLead
}
})