How to export bulk sObject records in a dynamic visual force page?
As Apex is integrated with the database, the Salesforce records and their field can be directly accessed from Apex. And every record in Salesforce is natively represented as sObject in Apex.
sObjects are standard or custom objects that stores record data in the force.com database. And a sObject variable represents a row of data and can only be declared in Apex using the SOAP API name of the object.
For example,
Account acc = new Account();
MyCustomObject__c customobject = new MyCustomObject__c();
Herein,
‘Account’ is the datatype of the ‘acc’ variable.
‘__c’is the custom object/field created by us. It helps in differentiating standard object/field and custom object/field.
How to export bulk SObject records in a dynamic visual force page?
You can export any sObjects records by clicking on the ‘Export’ button. You can select either standard or custom sObject and select fields of which value want to export.
Available in: Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.
Steps to export bulk sObject records,
STEP 1 to export bulk sObject records:
Select sObject from the dropdown:
Select fields of which values you want to export
Hit the Export Button
STEP 2:
To do this, let’s start off with a super simple controller.
Create Apex Class ‘ExportCtrlr’
STEP 3:
STEP 4:
STEP 5:
Conclusion:
We hope this article has made exporting bulk sObject records easy for you. If you have any queries or concerns or if you would like to add value to this piece, please reach out to us at sales@hicglobalsolutions.com