Export the data of a generic object

Export the data of a generic object by using the ExportData method.

Examples

Example 1:  

Example 2: