Shelby Owens
10/29/2024, 6:20 PMCeligo AI
10/29/2024, 6:21 PMAI generated answer (using internal Slack threads):The fieldId of the Attach File column on the attachments/mediaitem sublist on a message record is
expmediaitem
. This can be set using SuiteScript as shown in the code snippet below:
javascript
rec.setCurrentSublistValue({
sublistId: "expense",
fieldId: "expmediaitem",
value: 7800,
})
In this example, 7800
is the file ID of the existing file you want to attach.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/29/2024, 6:21 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828512549
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817662597
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815246
Celigo AI
10/29/2024, 6:21 PM