Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
What is the APPIAN's equivalent for JS String.replaceAll ?
replaceAll ?
Discussion posts and replies are publicly visible
you can use substitute function for this.
for example: substitute( "ACTUAL_TEXT","SUB_STRING","TO_REPLACE_WITH")
Appian OOTB substitute() works fine for any basic use cases as DeepakG already mentioned above. Just chiming in to add, that for more advanced use cases (fuzzy / pattern-matching / etc), you can also use "regexReplaceAll()" found in the Regex plug-in.
If you can check if reduce can give this the desired result also. Somewhere in community I read this last time.
if( count(ri!originalValues) <> count(ri!replacementValues), ri!inputText, reduce( fn!substitute, ri!inputText, merge( ri!originalValues, ri!replacementValues ) ) )