JSON parser invocable method
Last updated
Last updated
What is Json parser invocable method ?
It refers to a method or function designed to parse JSON data, which can be directly called or "invoked" by other parts of the application or system.
Extract JSON Data in Flow When 200OK is used as an Apex action in Flow and if the response received is in JSON, then we can use 200 OK JSON Transformer utility for flow to extract the specific data by passing the Json Path. The utility accepts three pieces of data :-
JSON Data :- This is the json response received from the 200OK callout.
Path :- Json Path to the required data.
Return Data Type :- As the name suggests, it indicates the data type of the required value. a. Bool for Boolean b. Num for Integer, Double c. Text for String
How to use Extract JSON Data in Flow 1. In the flow, to create a new action, click on the icon 2. Select the action as shown in the image below
Once you select the action, on the left side, find for 200OK and click on it, as shown in the image below.
Once you select the 200OK, in the middle under the action section, you will find a search bar. There, you can search for Extract Json as shown in the image below.
a. Once you select the Extract JSON Data, provide the information as below 1. Pass the Json data in the JsonData field from which Json you want to extract. 2. Pass the path in the path field to get the required data in the above Json. 3. In the returnDataType field, type 'String', 'Integer' or 'Boolean' depending on the requirement, as shown in the image below.
After providing the detailed information, you can make use of above extracted element in the next elements by using the action name of the above element.