I want to pull metadata from a sandbox for the purpose of finding where in code a standard field is being referenced. My plan is to pull the meta-data and then search for references to the field.
Currently using sfdx I am able to pull apexclass using command
sfdx force:mdapi:retrieve -r ./mdapipkg -u <username> -k ./package.xml
My package.xml is like this:
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>sotestcontroller</members> <name>ApexClass</name> </types> <version>42.0</version> </Package>
This returns the class in question, but I don't want to have to manually add in all the classes to get the data. I tried using this - https://marketplace.visualstudio.com/items?itemName=VignaeshRamA.sfdx-package-xml-generator visual studio code plugin but it just seemed to hang for ages and didn't generate anything.
What is the easiest way to get the metadata?