Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
How to attach a file to a sublist via SuiteScript?
I would like to attach a file to a sublist, specifically the Expense Line in the Expense Report. I have used record.attach to attach a file to a Vendor Bill but I cannot see a way to attach files to the Expense Report Lines. I used record.attach for the Vendor Bill.
var id = record.attach({
record: {
type: 'file',
id: '200'
},
to: {
type: 'customer',
id: '90'
}
});
Any guidance much appreciated.
0