Get Complete List Of Objects Using SF CLI Command๐Ÿ“๐Ÿ“๐Ÿ“

ย 

wait a minute to think!

๐Ÿ•“๐Ÿ••๐Ÿ•š

ย 

The easiest way would be using '๐˜ด๐˜ง ๐˜ด๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ญ๐˜ช๐˜ด๐˜ต' command in SF CLI!๐Ÿ—ฟ๐Ÿš€

  • ๐Ÿ‘‰use flag '--๐˜ด๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต' to get all|custom|standard objects Eg:

๐˜ด๐˜ง ๐˜ด๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ญ๐˜ช๐˜ด๐˜ต --๐˜ด๐˜ถ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ

  • ๐Ÿ‘‰use '-๐˜ฐ' or '--๐˜ต๐˜ข๐˜ณ๐˜จ๐˜ฆ๐˜ต-๐˜ฐ๐˜ณ๐˜จ' optionally. This will be needed if you run the command out of sfdx project structure or no default org is selected or you want list from a non defaulted org

  • ๐Ÿ‘‰going a step forward, if you need to get this in a csv file, add > <filename>.csv in the command๐Ÿ”ฎ๐Ÿช„

For Eg:

๐˜ด๐˜ง ๐˜ด๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ญ๐˜ช๐˜ด๐˜ต --๐˜ด๐˜ถ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ > ๐˜ค๐˜ถ๐˜ด๐˜ต๐˜ฐ๐˜ฎ๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต๐˜ด.๐˜ค๐˜ด๐˜ท

or

๐˜ด๐˜ง ๐˜ด๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ญ๐˜ช๐˜ด๐˜ต --๐˜ด๐˜ถ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต ๐˜ด๐˜ต๐˜ข๐˜ฏ๐˜ฅ๐˜ข๐˜ณ๐˜ฅ > ๐˜ด๐˜ต๐˜ข๐˜ฏ๐˜ฅ๐˜ข๐˜ณ๐˜ฅ๐˜ฐ๐˜ฃ๐˜ซ๐˜ฆ๐˜ค๐˜ต๐˜ด.๐˜ค๐˜ด๐˜ท

Here is a quick demo on the same

watch demo video on linkedin

Do Check Salesforce Documentation on sobject list

This Content was originally posted in linkedin View Post