Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Product feed export formula for item category and subcategory
Hi, we are working on a product feed export that will be used with a 3rd party marketing platform and I need to have both a category and a sub category column. I am thinking if I was able to trim the last two children out of the preferred category's hierarchy I would have a good data set.
Example String:
Home > Gear > Fishing Tackle > Fishing Hooks
So for this example, I can return 'Fishing Hooks' with this formula:
rtrim(regexp_substr({categorypreferred},'[^>]*$'))
But I am having a hard time getting the formula right for returning 'Fishing Tackle' - can any of you REGEX wizards help me figure this out?
0