Hi! I have a saved search for Sales Orders in my M...
# suitescript
s
Hi! I have a saved search for Sales Orders in my Map/Reduce SuiteScript and one of the columns is "ismultishipto". This works for the customers who need this column, however we now have a customer where the script is throwing an error that this is an invalid column. Now, I'm assuming that Enable Item Line Shipping is probably a feature that this other customer doesn't have in their NetSuite. My question would be, how can I check this from my script so that I can add the column ONLY if that feature is enabled, to avoid errors in NetSuite environments that don't have it?
n
You need to identify the id of the feature you're interested in but essentially this would be the line of code you need making use of eth N/runtime module:
Copy code
const PICKPACKSHIP = runtime.isFeatureInEffect({ feature: 'PICKPACKSHIP' });
s
Thank you! I'll google how to find the name of the feature, but do you happen to know if there's a list easily accessible somewhere?
n
Go to help and look for:
This does assume your earlier comment is true that this is related to a feature in the account I'm not familiar with that.
s
Thank you! Yeah that is a bit of an assumption on my part, but I cant think of why else this is an invalid column in one customer's instance and not the others