New SOQL FIELDS() Function in Spring 21

Nuclay

Writer & Blogger

The FIELDS() Function enables authors of SOQL statements to designate a predefined grouping of columns that will be automatically returned in the result set of records. FIELDS() provides a way to leverage existing platform constructs that decouples data management from business logic in integrations and helps reduce the effort involved to administer an org’s object model.

This is similar to the “select * from” in SQL or Mysql. Salesforce updated the SOQL character limits from 25K characters to 100K characters, empowering query authors to be more complete with their query operations.

Syntax: sfdx force:data:soql:query -q “SELECT FIELDS(ALL) FROM Account”

FIELDS: We can use FIELDS(CUSTOM) and FIELDS(STANDARD). This also enables the specific column fetching effort based on the field type (Standard or Custom).

It also respects the Field level access based on user permission. Salesforce security standards, such as the enforcement of field-level security within your query API operations, which ensure that users only see results that respect their data access privileges.

SHARE THIS POST

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Reading

Generative AI vs. Predictive AI: Unraveling the Differences in the AI Landscape

Generative AI vs. Predictive AI: Unraveling the Differences in the AI Landscape

Artificial Intelligence (AI) has become a cornerstone of technological innovation, driving advancements across industries and…

What is Generative Pre-trained Transformer and How Does It Work?

What is Generative Pre-trained Transformer and How Does It Work?

In the rapidly evolving landscape of artificial intelligence, certain breakthroughs stand out for their transformative…

LLM in Everyday Life: From the Keyboard of Your Phone to ChatGPT

LLM in Everyday Life: From the Keyboard of Your Phone to ChatGPT

In today’s fast-paced world, technology is seamlessly woven into the fabric of our daily lives.…

Get in touch

Gurugram Office

Dehradun Office

Scroll to Top