Aaron McCausland
07/28/2026, 3:28 PMCeligo AI
07/28/2026, 3:28 PMAI generated answer (using internal Slack threads):Based on the conversations, it appears that the field ID for the file in the
mediaitem sublist of a transaction record is not explicitly mentioned. However, one user suggests using myCustomRecord.getLineCount({sublistId:'mediaitem'})) to access the sublist, which implies that the file ID might be accessible through the mediaitem sublist.
In another conversation, a user is trying to set a file on the "attach file" field of the expense report line item using SuiteScript. They mention that in the XML it appears the field ID is expmediaitem. However, another user suggests using record.attach to set the file, which might imply that the file ID is not directly accessible or settable through a field ID in the mediaitem sublist.
Please note that this information is based on the provided Slack conversations and might not be entirely accurate or complete. For a definitive answer, you might need to refer to the NetSuite SuiteScript API documentation or consult with a NetSuite SuiteScript expert.Celigo AI
07/28/2026, 3:28 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83667
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820922911
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81665045
Celigo AI
07/28/2026, 3:28 PM