12.8 SDK fieldAction: vte_json_record
This SDK function allows you to generate a JSON code containing the labels and values of all the fields of a module instance (record) passed as input.
The only parameter to be passed is the crmid of the record from which you want to extract the information to be inserted into the JSON code.
It is mainly used to easily generate a JSON code in order to perform REST type Web Service calls (always configurable from the process via the dedicated standard action "Call External Web Service").
For further information on configuring API calls from the process, please consult chapter 3.15 of the process manual.
EXAMPLE OF USE
To better understand how it works, below is an example of using the SDK function vte_json_record() to generate a JSON code containing all the fields and values of an instance of the Companies module involved in the process.
Within an Action Task, we proceed with the configuration of an Update entity action involving the "Description" field.
Specifically, we are going to call the interested SDK function through the "Option Selection" picklist and accessing the "SDK Functions" section (Figure 1)
Figure 1 (click on the image for a higher graphic resolution)
Finally we pass as the only parameter the crmid of the record from which we want to extract the information, in this case of the Company (Figure 2)
Figure 2
The result generated by the function will be as shown in Figure 3
Figure 3 (click on the image for a higher graphic resolution)




