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. What’s up to every body, it’s my first pay a quick visit of
    this website; this webpage consists of awesome and genuinely fine information designed for readers.

  2. Its like you read my thoughts! You appear to know a lot about this, like
    you wrote the ebook in it or something. I feel that you could do with
    a few percent to pressure the message home a bit,
    but instead of that, that is wonderful blog. A fantastic read.
    I will definitely be back.

    My website … http://www.meiritoucai.com

  3. Amazing! This blog looks just like my old one! It’s
    on a entirely different subject but it has pretty much
    the same layout and design. Superb choice of colors!

  4. It’s a shame you don’t have a donate button! I’d certainly donate to this brilliant
    blog! I suppose for now i’ll settle for bookmarking and adding your RSS feed
    to my Google account. I look forward to brand new updates and will share this blog with
    my Facebook group. Talk soon!

    Feel free to surf to my blog; Advanced Keto 1500

  5. Does your site have a contact page? I’m having a
    tough time locating it but, I’d like to shoot you an email.
    I’ve got some ideas for your blog you might
    be interested in hearing. Either way, great site and I
    look forward to seeing it grow over time.

  6. Hi there, You have done an incredible job. I will definitely digg it and personally suggest to my
    friends. I am sure they will be benefited
    from this site.

  7. you’re truly a good webmaster. The web site loading speed
    is incredible. It seems that you are doing any
    distinctive trick. Furthermore, The contents are masterwork.
    you’ve performed a wonderful job in this subject!

    Also visit my homepage :: Max Heal CBD Reviews (bbs.ranmao.com)

  8. It’s actually a cool and helpful piece of info.
    I’m happy that you simply shared this helpful info with us.
    Please stay us informed like this. Thank you for sharing.

  9. Just wish to say your article is as amazing. The clearness in your post is just great
    and i can assume you are a professional on this subject.
    Fine together with your permission allow me to grasp your RSS feed to keep up to date with approaching post.

    Thanks 1,000,000 and please keep up the gratifying work.

    Also visit my web-site Alpha Gorge XL (monsterhd.com)

  10. Very nice post. I just stumbled upon your blog and wished to say that I’ve truly enjoyed surfing around your blog posts.

    In any case I will be subscribing to your rss feed and I hope you write again soon!

  11. Howdy! I know this is somewhat off-topic but I had to ask.
    Does operating a well-established website like yours take a massive amount work?
    I am brand new to operating a blog but I do write in my journal every day.

    I’d like to start a blog so I will be able to share my personal experience and thoughts online.
    Please let me know if you have any recommendations
    or tips for new aspiring blog owners. Thankyou!

    Review my site; EreXegen Male Enhancement – ibbs.uu.cc,

  12. I am extremely inspired with your writing talents as
    smartly as with the structure to your blog. Is this a paid
    theme or did you customize it your self? Either way keep up the excellent quality writing, it is rare to see
    a great blog like this one nowadays.

    My blog post :: EreXegen Male Enhancement (haojiafu.net)

  13. Greetings, There’s no doubt that your blog may be having
    browser compatibility problems. Whenever I look at your blog
    in Safari, it looks fine however, if opening in Internet Explorer, it has some overlapping issues.
    I merely wanted to provide you with a quick heads up!
    Aside from that, wonderful website!

Comments are closed.