Did you know you can fetch all fields from a salesforce object now? Just use the below query to fetch all fields for User Object.

SELECT FIELDS(ALL) FROM User

For all ‘custom’ fields

SELECT FIELDS(Custom) FROM User

For all ‘standard’ fields

SELECT FIELDS(Standard) FROM User

It’s that simple!

--

--

Swapnadip

Swapnadip

A Salesforce Engineer helping to make the world a better place one Salesforce user at a time!