Component containing JavaScript utilities to be used in intermediate to advanced scenarios, such as safe JSON string parsing.
Disclaimer:This component was tested in the last versions of Google Chrome, Firefox and Microsoft Edge on the 11th of December 2020.
This component has actions that use the javascript Eval() function, such actions will have a description identifying it. Before using an action from this component, please read the action's description.
Eval() is a JS function that executes javascript from a string and is an enormous security risk. Use with caution.
Added missing descriptions
Created a demo
Created a new action “CorrectJSONStringForParseWithEval” that uses JavaScript’s eval because of an issue with “:” on the ‘main’ action, because it would add “ around the : and make the JSON invalid (https://www.outsystems.com/forums/discussion/48494/javascriptutils-colon-character-in-value-field/).
Fixed 2 bugs on “ReplaceObjectTaggedAttributes”: IF with wrong name/connectors order. “Replace” was replaced with “string.split().join()” to fix the issue and add compatibility with older browsers.