it's strictly this line which no longer works in S...
# suitescript
m
it's strictly this line which no longer works in SS2.1:
record.attach({record: {type: 'file', id: fcFileId}, to: {type: recordType, id: recordId}});
everything before & after works in both
j
For the recordType, are you passing an enum value? I've had trouble in the past with 2.1 when using a string instead (except for custom records).
m
I sure am (passing str). I'll give that a try - thank you
@JessicaL looks like you're right. I don't see "FILE" (or any equivalent) as an available value for record.Type, but at least know why it's not working now. back to 2.0 to resolve my issue 😞
thanks again
👍🏻 1