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. Greetings from Los angeles! I’m bored at work so
    I decided to check out your blog on my iphone during lunch break.
    I love the info you provide here and can’t wait to take a look when I get home.
    I’m shocked at how fast your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyways, superb
    site!

  2. Wonderful goods from you, man. I’ve bear in mind your stuff previous to and you’re just too excellent.
    I actually like what you’ve obtained right here, certainly like what you
    are stating and the way in which during which you assert it.
    You’re making it enjoyable and you still take care of to
    keep it smart. I can not wait to read much more from you.
    That is really a tremendous website.

  3. I’m amazed, I must say. Rarely do I encounter a blog that’s both equally
    educative and entertaining, and let me tell you, you have hit the nail on the head.
    The issue is an issue that too few people are speaking
    intelligently about. I’m very happy that I found this in my hunt for something concerning this.

  4. Hey there! I know this is kinda off topic but I’d
    figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog
    article or vice-versa? My site discusses a lot of the same subjects as yours and I think we could greatly benefit from each other.
    If you’re interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Fantastic blog by the way! https://www.buzzfeed.com/eshrakaacademy

  5. You can definitely see your expertise in the work you write.

    The world hopes for more passionate writers like you who aren’t afraid to
    say how they believe. All the time follow your heart.

  6. Great beat ! I wish to apprentice even as you amend your website, how
    can i subscribe for a blog site? The account aided me a
    applicable deal. I were tiny bit acquainted of this your broadcast
    offered bright transparent idea

  7. I am really impressed with your writing skills as well as with the layout for your blog.
    Is this a paid theme or did you customize it yourself? Anyway stay up the nice quality writing,
    it is uncommon to see a nice blog like this one today..

  8. I’m gone to say to my little brother, that he should also pay a visit this weblog on regular basis to take updated from most recent gossip.

  9. Hey are using WordPress for your blog platform? I’m new to the blog world but
    I’m trying to get started and set up my own. Do you require any
    html coding expertise to make your own blog? Any help would be greatly appreciated!

  10. Its such ɑs yoս learn my mind! Ⲩoᥙ seem tο grasp so mᥙch aƅout this,
    such as yoou wrote thе е book іn іt or something.
    I beⅼieve that you can doo witһ somе % to force the message house ɑ bit,
    һowever iinstead of tһat, that is fantastic blog. Α great
    reаd. Ι’ll certainly be back.

    Feel fre to surf to my blog post … ATHLETES

  11. Your mode of telling everything in this paragraph is actually pleasant, every one be
    able to effortlessly be aware of it, Thanks a lot.

  12. Heya i’m for the first time here. I came across this board and I to find It truly
    helpful & it helped me out much. I am hoping to
    provide something back and aid others such as you helped me.

Comments are closed.