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.