function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DEV_CGDEV_CG 

how to fetch api names of an object into a string list

Hi everyone,
global void execute(Batchablecontext bc, List<Sobject> Scope)
{

}
// now  i would like to fetch the Filed names of Scope, and i want to put them in to string list.

could anyone help me in this.
Sitanshu TripathiSitanshu Tripathi
Hii,

You can get all the object used in Salesforce from here.

https://www.sfdc4students.com/2018/10/query-to-get-all-object-of-salesforce.html