+ Start a Discussion

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:

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