Salesforce Fact #946 | Constructing dynamic SOQL using dynamic formula evaluation

With Summer'25 release, Dynamic formula evaluation is possible using FormulaBuilder.parseAsTemplate() method and merge field syntax.

This approach can be used to construct Dynamic SOQL queries.

In this example, we are trying to fetch Account records which are matching with a Lead ownerid and Leadsource.

Reference: https://developer.salesforce.com/blogs/2025/05/summer25-developers

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #913 | Access selected record field values in screen flow lookup w/o Get Records