Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
No Result
View All Result
Home Articles

Salesforce Summer’24 Release Notes | Apex

Antonis Melakis by Antonis Melakis
July 10, 2024
in Articles, Release Notes
0 0
0
Salesforce Summer’24 Release Notes | Apex
0
SHARES
16
VIEWS
Share on FacebookShare on Twitter

2. Evaluate Dynamic Formulas in Apex (Beta)

Dynamic formulas in Apex now support using an Sobject as the context object

How: Use the new Formula.builder() method to create and build an instance of the FormulaBuilder and uses an SObject type as the context object in the withType() method

// Below formula will be true when account Type is populated

FormulaEval.FormulaInstance ff = Formula.builder()
    .withReturnType(FormulaEval.FormulaReturnType.Boolean)
    .withType(Account.SObjectType)
    .withFormula('NOT(ISBLANK(TEXT(Type)))')
    .build();

Boolean typeIsNotBlank = (Boolean)ff.evaluate(new Account(Name='Test Account', Type='Prospect'));
Assert.isTrue(typeIsNotBlank);
Previous Use Cursors for Expanded SOQL Query Result Support
Next Support up to Five-Level Parent-to-Child Relationship SOQL Queries in Apex
Tags: ApexSalesforce Summer '24 Release Notes
Previous Post

Salesforce Summer’24 Release Notes | Permissions and Sharing

Next Post

Salesforce Summer’24 Release Notes | General Setup

Antonis Melakis

Antonis Melakis

Next Post
Salesforce Summer’24 Release Notes | General Setup

Salesforce Summer'24 Release Notes | General Setup

Leave a Reply Cancel reply

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

Recent Posts

  • Salesforce Spring’25 Release Notes | Flow Extensions and Management
  • Salesforce Spring’25 Release Notes | Flow Builder Run-Time Changes
  • Salesforce Winter’25 Release Notes | Screen Flow Updates
  • Salesforce Winter’25 Release Notes | Flow Builder User Experience Updates
  • Salesforce Spring’25 Release Notes | Flow Builder User Experience Updates

Recent Comments

No comments to show.

Tags

Analytics Apex AppExchange Artificial Intelligence Automation Awards and Recognition Configuration Customization Data Development Digital Transformation Fields Flow Actions Flow Builder Flow Builder Updates General Enhancements General Mobile Updates General Setup Globalization Lightning App Builder Lightning Reports and Dashboards List Views Mobile Partnership Permissions and Sharing Sales Salesforce Flow Salesforce Mobile App Salesforce Overall Salesforce Partners Salesforce Spring ’25 Release Notes Salesforce Summer '24 Release Notes Salesforce Winter ’25 Release Notes Security, Identity, and Privacy User Experience
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.