Use JSON parser invocable method
Last updated
Last updated
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 In the flow, to create a new action, click on the icon 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.
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.
Once you have provided information, you can make use of above extracted element in the next elements by using the action name of the above element.