Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Getting media item data from download-item record
I need to get the URL for the media item that is associated with a downloaditem. The normal way of getting items via a 'machine' doesn't work in this case: itemRecord.getLineItemCount("mediaitem")
When I look at the downloaditem record via XML I see the price, and sitecategory "machines" but nothing for the media item, so I can see why the above script wouldn't work. However we have a custom record on our items, and I can get data from that with getLineItemCount etc, and that doesn't show up in the XML
Anyway, what is the correct way of getting data for the mediaitem(s) that are attached to a download item. I really only need the internal ID of the media item as once I have that, I can get everything else I need.