Hello People, I have a custom field on item record...
# suitecommerce
a
Hello People, I have a custom field on item record of type 'multi-select' for item record. For each item, that custom field contains 4-5 items record. I've included that field in details fieldset and when I use PDP
getItemInfo()
, I can access the value of that custom field but it is giving me the name of item records and not the internal ids. Is there any way to get internal ids of those records without having to create a search for it?
u
create a second field on the item record thats a text area and it saves JSON string values of the multi select fields values for Id and Name. then use the fields sets to call that field instead perhaps
👏🏻 1
a
I was hoping to get something similar to what we can do in Suitescripts (getValue instead of getText). Is this the only solution?
c
@//greg That's creative.
s
There is no 'switch' for getValue / getText in these API methods
And yes, Greg's idea is the generally accepted answer here. For example, if you wanted to use the Transaction List Columns Management feature to show the Location of where an order will be shipped from, you can't use the standard Location field because it will just return the ID of the field. In this scenario, you would either: 1. Write a customisation or customise the existing code to specifically fetch that (complicated for SC/SCMA) 2. Set up a custom field which copies the text value of the Location after an order is changed and puts it in that custom field, and then fetch the custom field