Last active
January 29, 2021 20:33
-
-
Save marshallvaughn/19a1f46feb02b87a239e7fefd165544f to your computer and use it in GitHub Desktop.
sfdx Cookbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the name of each field on an object, by parsing its JSON description with jq | |
sfdx force:schema:sobject:describe --json -s account | jq -r '.result.fields[] | .name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the id of an object using the Tooling API | |
sfdx force:data:soql:query -q "SELECT Id FROM CustomObject WHERE DeveloperName = 'Account'" -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment