Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.