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!
Nested Functions in Formula Error
I'm trying to use the result of one function as a parameter within another and getting an error. The goal is a Regex which will return the first "word" after the first space in a Contact's entityid.
REGEXP_SUBSTR({entityid},'[A-Za-z]+',INSTR({entityid}, ' '))The nested INSTR function, when given its only column, works perfectly well. Similiarly, the REGEXP_SUBSTR function returns results as expected if I use a hardcoded value, like:
REGEXP_SUBSTR({entityid},'[A-Za-z]+',6)But when used in conjunction, I get:
for every result.ERROR: Invalid Expression
Any suggestions?
0