I've tried multiple ways to replace characters in ...
# suiteflow
c
I've tried multiple ways to replace characters in my string but neither works in my formula. Any ideas? Should be a simple thing
c
Tried that as well but that doesn't seem to work either. Also the REPLACE function in workflows shows it should be in the format
str.replace(regexp, str)
a
ah yes, if this wf action is type of client trigger then you must use SuiteScript 1.0 API functions. And my previous post is valid only for server type triggers.
and I'm not familiar with SuiteScript but it seems that you must user lowercase for this function name: .replace(xxxx) Update: yep, it works, just tried {firstname}.replace('-','_')
c
I was already afraid that it would be something that small. I'm gonna try
My final working solution
{custitem_item_isbn_number}.replace(/-/g,'')
Thanks for the help!
b
couldn't you have done
REPLACE({fieldid}, '-','_')
?