surajp / any-js-local-action

Execute any JS within a flow as a local action. Convert strings to arrays/collections and more...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Execute any JS in Screen Flows. Work around the limitations of flows using JS

Convert strings in flows to arrays/collections, concat, use map, reduce, filters, and more..!.

Use Invocable Actions to serialize record collections and deserialize them back after processing. So flows can now be as simple as Get Records -> Serialize -> Process using JS -> Deserialize -> Update Records. Avoid loops and make your flows more linear. A sample flow is included.

Example 1: JS Only (No Record interactions)

Example 2: Get Records -> Serialize -> Add Phone and Type using JS -> Deserialize -> Update Records

About

Execute any JS within a flow as a local action. Convert strings to arrays/collections and more...

License:MIT License


Languages

Language:Apex 79.0%Language:JavaScript 21.0%