JSON Parser in Salesforce Flow

{“id”: “0001”,”total”:200, “repeat”:true,”ppu”: 0.55,”batters”:{“batter”:[{ “id”: “1001”, “type”: “Regular” },{ “id”: “1002”, “type”: “Chocolate” },{ “id”: “1003”, “type”: “Blueberry” },{ “id”: “1004”, “type”: “Devils Food” }]},”topping”:[{ “id”: “5001”, “type”: null},{ “id”: “5002”, “type”: “Glazed” },{ “id”: “5005”, “type”: “Sugar” },{ “id”: “5007”, “type”: “Powdered Sugar” },{ “id”: “5006”, “type”: “Chocolate with Sprinkles” },{ “id”: “5003”, “type”: “Chocolate” },{ “id”: “5004”, “type”: “Maple” }]}
  1. Ignore Error? (Boolean) : set to False if you want the flow to break if there’s an error while you do parsing. Set to True if you want the flow to continue if there’s an error while you do parsing and output value will be “[Error Catched]:<The error exception>”
  2. JSON String to Parse: the JSON text you want to parse, in this case variable Test_JSON that I created earlier

--

--

--

A dots connector. open for part time, Email: munawirrahman@gmail.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Re- Introduce javascript

Setting headers in postman via scripts

JavaScript Optional Chaining

Angular 10 Series Part 1: Workspace Setup

JavaScript null vs undefined

The story of Bloc: An isometric, multiplayer building game

Screen Shot 2017-05-11 at 13.22.32

String And Number methods in JavaScript.

👾 Add some pixel art flair to your GitHub calendar heat map ░▒▓█

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Munawirrahman

Munawirrahman

A dots connector. open for part time, Email: munawirrahman@gmail.com

More from Medium

Azure - Tags Update/Create using PowerShell Script

Failed to Abort Job — Batch Execution

Extending Page Properties in AEM

Extending Page Properties in AEM By Mayur Satav

13 Best Salesforce AppExchange Applications for Healthcare