Evaluate Dynamic Formulas in Apex - Salesforce

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024
  • “Evaluate Dynamic Formulas in Apex” is a new feature in Salesforce scheduled for release with Summer ’24 (currently in beta). It allows developers to programmatically evaluate Salesforce formulas within Apex code. This means you can write code that takes a formula as input (as a string) and evaluates it based on the context you provide, similar to how formulas are evaluated in fields or rules within Salesforce.
    Here are some potential benefits of this feature:
    🛎️ Real-time Calculations: Eliminate the need to store pre-calculated formula results in fields, improving efficiency.
    🛎️ Increased Flexibility: Create more dynamic logic in automations, validations, and workflows by evaluating formulas at runtime.
    🛎️ Enhanced User Experience: Build custom formula editors that leverage the power of the Salesforce formula engine.
    In this video, I am explaining this new feature with a sample code snippet.
    #apex #dynamic-formula #dynamic-formula-apex #soql #formula #performance #query #summer24
    ▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
    0:01 - Introduction
    0:23 - What is Dynamic Formula?
    2:31 - Code Snippet
    5:06 - Execute the Code
    6:40 - Final Thoughts
    📌 Blog - sudipta-deb.in...
    📌 Formula Field Limitation - help.salesforc...
    📌 Automate User to Permission Set, Group, Queue Assignment in Salesforce | User Access Policies - • Automate User to Permi...
    📌 Improved Salesforce Flow Address Component | How to use Google Map in Flow - • Improved Salesforce Fl...
    📌 Use Flow Repeater Component To Collect Information And Create Records - • Use Flow Repeater Comp...
    📌 Salesforce Summer 24 Release Playlist - bit.ly/3Ur0XCW
    📌 Salesforce Spring 24 Release Playlist - bit.ly/3wyAB9I
    📌 Salesforce Winter 24 Release Playlist - bit.ly/3P0bun0
    📌 Salesforce Summer 23 Release Playlist - bit.ly/3Mw6rbx
    📌 How To Add Named Credentials To Permission Set Using Principals - • How To Add Named Crede...
    📌 Salesforce Flow Playlist - bit.ly/3nIpTnT
    📌 HTTP Post Call From Salesforce Flow - • Salesforce Summer 23 R...
    📌 External Services in Flow - HTTP Callout - • External Services in F...
    📌 Salesforce Release Playlist - bit.ly/3r7F0cn
    ✨ Blog: www.sudipta-de...
    ✨ Subscribe for new videos on technology every week: bit.ly/3vCQKpg
    ✨Connect with me
    📌 Twitter: / thesudiptadeb
    📌 Website: www.sudipta-de...
    📌 LinkedIn: / sudiptadeb
    📌 Facebook: / technicalpotpourri
    Credit: Music I Use under the Mixkit License
    Disclaimer: All opinions are my own and this video content is not endorsed by Salesforce, Google or any other company in any way.

Комментарии • 8

  • @SarGuP
    @SarGuP 4 месяца назад +1

    Can we use this for multiple records

    • @TechnicalPotpourri
      @TechnicalPotpourri  4 месяца назад

      Yes absolutely you can use this formula for multiple records

  • @pradeepkumars975
    @pradeepkumars975 4 месяца назад +1

    Thanks for the info and we can use custom meta data to handle it more efficiently

    • @TechnicalPotpourri
      @TechnicalPotpourri  4 месяца назад

      Agreed. It is giving us lots of flexibility.

    • @pradeepkumars975
      @pradeepkumars975 4 месяца назад

      This feature is not only for dynamic formula fields we can create custom validation rules using custom metadata and we can use it in triggers and flows as well. Is it supporting child to parent relationship value?

    • @TechnicalPotpourri
      @TechnicalPotpourri  3 месяца назад

      I don't think it supports child to parent relationship value. It is solely on single object.

  • @awesomekj5812
    @awesomekj5812 4 месяца назад

    What will be the use case for this ? I feel like I can do that with IF statement as well ...isn't ? This won't work in cases where you actually need formula on page to create list view and all

    • @RamananRaju-sr4rq
      @RamananRaju-sr4rq Месяц назад

      good question, i have the same thought. This use case could have been easily handled through a 'if' statement why would this require a builder class