+ Start a Discussion
SFDave_126SFDave_126 

Querying all the fields in a SOQL object via ANT or Meta?

Is there any way to query all the fields in a Salesforce data object via Ant or the META API? I see plenty of solutions that perform queries via the Apex Developer Console, but I'm looking for a command-line way to achieve this in Ant or META if possible.
Zhen Yueh LeanZhen Yueh Lean
If you are familiar with REST metadata api, you can get the list of fields using this API method:
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_describe.htm

Then you can contruct the soql from there :)
SFDave_126SFDave_126
Thanks Zhen