Select FIELDS (All, Standard, and Custom fields) in SOQL Query

Hello All,

Earlier Query all fields functionality was not available in Salesforce. Now we can get records of all fields available in Salesforce using the new FIELDS() function of Salesforce Object Query Language (SOQL).

FIELDS(ALL) – All Fields including custom and standard fields. This is like * in SQL.

FIELDS(Custom) – This will fetch only custom fields.

FIELDS(Standard) – This will fetch only standard fields.

Example Query: SELECT FIELDS(ALL) FROM ACCOUNT LIMIT 200

Note:  The SOQL FIELDS() function must have a LIMIT of 200. We can also use the above query in workbench but we can not export data in bulk CSV.

No alt text provided for this image


Samiksha Dahe

Software developer engineer (SalesForce)at Bridgenext (Emtec Inc) | 3x SalesForce certified| Traihead Ranger

3 年

Thanks for the information. It is actually helpful.

回复

要查看或添加评论,请登录

Shivendu Pande ??的更多文章

社区洞察

其他会员也浏览了