JSON to Apex Creation

200 OK comes with Utility to create Apex wrapper class out of any given JSON. This utility can be used via a Quick Action button on the Integration channel record page.

On click of this button a screen flow will appear which has two fields. Class Name Class body (JSON).By default the class name is the same as Channel Name, but the user can give any name. Pass the JSON in the Class body field for which you want to create the wrapper class. Press the Next button. And your two classes with serializable and deserializable invocable methods will be generated along with the test classes.

JSON to Apex utility (Top right)

Screen Flow for JSON to Apex utility

Success Screen with class name that are generated

Go to Setup and type Apex class in the quick find box. Click on the apex class and you can find the generated class along with the test classes

Apex class in setup

Last updated