Salesforce Winter ’21 Release Notes (Developer Perspective)

Update Resources with the PATCH HTTP Method in Apex Callouts

To make partial or full updates to a resource in an HTTP web service, specify the PATCH method in the HttpRequest class. Previously, only the PUT method was supported for full updates.

https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_apex_callouts_patch.htm?edition=&impact=

Use the Safe Navigation Operator to Avoid Null Pointer Exceptions

Use the safe navigation operator (?.) to replace explicit, sequential checks for null references. This new operator short-circuits expressions that attempt to operate on a null value and returns null instead of throwing a NullPointerException.

Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.

How: If the left-hand-side of the chain expression evaluates to null, the right-hand-side is not evaluated. Use the safe navigation operator (?.) in method, variable, and property chaining. The part of the expression that is not evaluated can include variable references, method references, or array expressions.

https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_apex_SafeNavigationOperator.htm?edition=&impact=

Instead of checking System.isFuture() || System.isQueueable(), detect Apex Runtime Context with RequestId and Quiddity

//Get info about the current request
Request reqInfo = Request.getCurrent();

//Universally unique identifier for this request
//Same as requestId in splunk or REQUEST_ID in event monitoring
String currentRequestId = reqInfo.getRequestId();

//enum representing how Apex is running. e.g. BULK_API vs LIGHTNING
//Use this with a switch statement,
//instead of checking System.isFuture() || System.isQueueable() || ...
Quiddity currentType = reqInfo.getQuiddity();

Improve Apex Testing with New SObject Error Methods

If the SObject.addError() method has been called on an SObject instance, the SObject.hasErrors() method returns true. The SObject.getErrors() method returns a list of Database.Error objects that contain the errors. encountered.https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_apex_trackErrors.htm?edition=&impact=

A new REST resource for Composite requests is now generally available

Then composite resources let you batch up multiple calls in a single call. By using this you can simplify your code, reduce network overhead, and improve your app’s performance.

composite graphs ensure that the steps in a given set of operations are either all completed or all terminated. It’s no longer necessary to check for a mix of successful and unsuccessful results. The Composite Graph resource payload increases the subrequest limit to 500 per payload, up from 25 per Standard Composite payload. A single API call can now do much more.

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/using_composite_resources.htm

Transform Data with a Few Clicks (Pilot)

Data in your Salesforce org is stored across different objects. Use Data Processing Engine to bring all the data in one place and transform it based on your requirements. Start by creating an instance of Data Processing Engine. Then select data sources, define the various configurations, and choose whether you want to use the transformed data to create records or update existing records.

https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_data_processing_engine_create.htm?edition=&impact=

1,085 thoughts on “Salesforce Winter ’21 Release Notes (Developer Perspective)”

  1. wonderful issues altogether, you simply gained a emblem new
    reader. What could you suggest in regards to your publish that
    you simply made some days in the past? Any sure?

  2. We stumbled over here different web address and thought I might as
    well check things out. I like what I see so i am just following you.
    Look forward to going over your web page yet again.

    Also visit my blog: A片

  3. Hiya very nice blog!! Man .. Beautiful .. Superb .. I will bookmark your site and take the feeds
    also? I’m satisfied to find numerous helpful information right here within the
    put up, we’d like develop extra strategies on this regard, thanks
    for sharing. . . . . .

  4. I think this is one of the most significant info for me. And i am
    glad reading your article. But wanna remark on few general things, The site style is ideal, the articles
    is really great : D. Good job, cheers

  5. เล่น บาคาร่าออนไลน์ เว็บ UFAX891 ดีเช่นไร
    ? เว็บเล่นบาคาร่าออนไลน์ เป็นเว็บพนันออนไลน์ลำดับหนึ่งสำหรับเพื่อการแทงบาคาร่าที่เยี่ยมที่สุด ด้วยหน้าตาของเว็บไซต์ที่มีความทันสมัย ใช้งานง่าย ไม่ซับซ้อน พร้อมขั้นตอนการสมัครที่เข้าใจง่าย คำถามสำหรับการกรอกลงทะเบียนสมัครสมาชิกไม่มาก
    ยุ่งยาก ถามข้อมูลฐานราก ไม่ได้เจาะลึกถึงข้อมูลความปลอดภัยส่วนตัว เว็บไซต์ของ UFA X891 มีความน่านับถือเป็นอย่างมาก เพราะว่ามีรีวิวจากผู้ที่เล่นจริง แล้วก็เราก็จ่ายจริง จ่ายเร็ว เว็บไซต์ของพวกเรา เป็นเว็บไซต์ตรง ไม่ได้ผ่านเอเย่นต์เสมือนเว็บไซต์อื่นๆลงทุนครึ้ม ได้เยอะแค่ไหนพร้อมจ่ายจริง คนที่เลือก แทงบาคาร่า กับพวกเราจะทราบดี
    ว่าเรากล่าวจริง ไม่น้ำลาย และก็พวกเรามีทีมงาน พนักงานชาวไทย ที่พร้อมบริการ 24 ชั่วโมงถ้าเกิดมีปัญหา หรือติดปัญหาส่วนไหน สามารถทักมาสอบถามได้ตลอดระยะเวลา ผ่านช่องทางไลน์แอด @ufax891

  6. Hi every one, here every person is sharing these knowledge,
    so it’s fastidious to read this webpage, and I used to pay
    a visit this website all the time.

  7. Hello my friend! I wish to say that this article is
    amazing, great written and include almost all important infos.

    I’d like to look extra posts like this .

  8. When someone writes an article he/she keeps the image of a user in his/her mind that how a user can know
    it. Thus that’s why this article is outstdanding.
    Thanks!

    My website – www (Melva)

  9. Hi there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success.

    If you know of any please share. Cheers!

  10. Hello There. I found your weblog the usage of msn. This is an extremely well written article.
    I’ll make sure to bookmark it and come back to
    learn more of your useful information. Thanks for the post.

    I will definitely comeback.

  11. Hello there! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly?
    My blog looks weird when viewing from my iphone.
    I’m trying to find a template or plugin that might be
    able to resolve this issue. If you have any suggestions, please share.
    Many thanks!

  12. This design is steller! You obviously know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Fantastic job.
    I really enjoyed what you had to say, and more than that, how you presented
    it. Too cool!

  13. Great blog here! Also your web site loads up fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my site loaded up as fast as yours lol

    Feel free to surf to my page nike shoes

  14. Howdy! I could have sworn I’ve been to this website before but after browsing
    through some of the post I realized it’s new to me. Anyhow, I’m definitely delighted I found it
    and I’ll be book-marking and checking back frequently!

Comments are closed.