You need to sign in to do that
Don't have an account?
Vireak Ren
how to get all objects and fields
How to get All Objects and Their Field? Please help me thank before<.^.>
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I have gone through your problem. Please try the below code.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Sachin Arora
All Answers
I think you can use metadata api to get all the objects. You need to just write a package.xml which you can find in the developer guide.
Please find below the link to metadata api developer guide where package.xml for objects.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm
You will have a tag named as field under respective object files.
In case if helped you I would request you to please close the thread by marking this as the best answer so that it can be used by others in the future and also helps in keeping the community clean.
Regards,
Anutej
I have gone through your problem. Please try the below code.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Sachin Arora
And I have a new one Question . I try to set variable but i still error" Variable does not exist: SObj.SObjectType "
But When change ''Schema.DescribeSObjectResult R = SObj.SObjectType.getDescribe();'' to "Schema.DescribeSObjectResult R = Account.SObjectType.getDescribe();" It's worked
Here is my Code Thanks you again >*<