Salesforce has introduced SOQL Fields functions. This new function lets us query all the Salesforce fields of the object, Before you would have to add various fields api names to the select to get their values
You can include any of these in the field list:
- FIELDS(ALL) — select all the fields of an object.
- FIELDS(CUSTOM) — select all the custom fields of an object.
- FIELDS(STANDARD) — select all the standard fields of an object
