Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now!
RUN, DON’T WALK...Registration for #SuiteWorld 2022 is officially OPEN! This special early bird price won’t last long, so make sure you don’t miss out: https://lnkd.in/gGRN78A3
YOUR VOICE MATTERS! VOTE FOR OUR NEXT WEBINAR TOPIC NOW.
Click on this link for the poll.

How do I get URL from SelectCustomFieldRef Image field?

edited Dec 2, 2019 3:00PM in SuiteCloud / Customization 4 comments

I am setting up an external web site that talks with Netsuite using SuiteTalk. I am using ASP.NET and C# and Visual Studio, I can't figure out how to get the URLs for the images selected for my inventory items.

SITUATION 1

I have an inventory item record as such:

InventoryItem item = (InventoryItem)response.record;

but if I try to do

str image = item.storeDisplayImage;
or
str image = item.storeDisplayImage.value;
or
str image = item.storeDisplayImage.value.ToString();

I get errors such as "Object reference not set to an instance of an object."
Visual Studio tells me that "value" should be a valid attribute of such an item type, so I don't know why this doesn't work.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

This Week's Leaders

This Month's Leaders

All Time Leaders