Tools:
- Ant
- bash
- DOS2Unix converter
- IDE (e.g. VSCode/Atom)
- Create a directory structure as
- build
- src -- package.xml -- fields.txt -- findFieldRef.sh
-
Retrieve the metadata for the required types (e.g. Reports, ReportsTypes, etc) --- ant -f build/build.xml getCode -Dsfdc.serverurl=https://login.salesforce.com/ -Dsfdc.username=###### -Dsfdc.password=##### (You might need to pull in parts, if it exceeds 10K api limit) NOTE: to comment a line/lines - press keys: Ctrl + /
-
Update the fields list --- If on Windows OS, convert to unix format. CMD: dos2unix fields.txt
-
Execute the script --- ./findFieldRef.sh
-
The result of the scrit will be in Results.txt