I’m trying to set a file on the “attach file” fiel...
# suitescript
c
I’m trying to set a file on the “attach file” field of the expense report line item using suitescript. Does anyone know how to set that field to an existing file ID? In the XML it appears the fieldID is “expmediaitem” but I can’t set it
rec.setCurrentSublistValue({
sublistId: "expense",
fieldId: "expmediaitem",
value: 7800,
})
b
Try using record.attach