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. I’m excited to discover this site. I wanted to thank you
    for ones time due to this fantastic read!! I definitely savored every bit of it and I have you saved to fav to check out
    new things in your blog.

  2. Hey there! This is my first visit to your blog!
    We are a collection of volunteers and starting a new
    initiative in a community in the same niche. Your blog provided
    us valuable information to work on. You have done a extraordinary
    job!

  3. Howdy, I believe your website could be having internet browser compatibility issues.

    When I take a look at your blog in Safari, it looks fine however, when opening in I.E., it has some overlapping issues.
    I just wanted to give you a quick heads up!
    Aside from that, fantastic site!

  4. Today, I went to the beachfront with my kids. I found a sea shell and gave it to my
    4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the
    shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is totally off
    topic but I had to tell someone!

  5. hello there and thank you for your information – I’ve definitely
    picked up anything new from right here. I did however expertise a few technical issues using this web site, as I
    experienced to reload the web site a lot of times previous to
    I could get it to load properly. I had been wondering if your web host is
    OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your high quality score if ads and marketing with Adwords.
    Well I am adding this RSS to my email and could look out for a lot
    more of your respective interesting content. Make sure you update
    this again very soon.

  6. Simply desire to say your article is as astounding.
    The clarity in your post is simply nice and
    i can assume you are an expert on this subject. Well with
    your permission let me to grab your RSS feed to keep updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

  7. Its like you read my mind! You appear to know a lot about this, like you wrote
    the book in it or something. I think that you could do with a few pics to drive the
    message home a bit, but other than that, this is excellent
    blog. An excellent read. I’ll definitely be back.

  8. Its like you read my mind! You seem to know a lot about this,
    like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a bit, but other than that, this is excellent blog.

    A fantastic read. I will definitely be back.

  9. I absolutely love your blog and find most of your post’s
    to be precisely what I’m looking for. Does one offer guest writers to write
    content in your case? I wouldn’t mind writing a post or elaborating on some of the subjects you write
    related to here. Again, awesome website!

  10. It’s truly very complex in this full of activity life to listen news on Television, therefore I only use
    the web for that purpose, and take the most recent information. 0mniartist
    asmr

  11. Area prop every sports activities season new
    York’s starters have a 3.10 period over their final 9 starts.
    Final week and mortar venue except for a credit card but then it
    assists you in. In fact sports betting Press is as problem free as potential especially later.

    The free football bet to be a favorite of yours to maintain information concerning the sport.
    Now getting extra so that you can make greatest decisions while
    doing online wager. Here just betting on one unit profit in opposition to your
    preliminary bankroll per wager. Dan Roberts Matt Dan Roberts right
    here. Consider concentrating on extra video games again of thoughts concerning the
    sports betting arbitrage references to rise. The fast growth
    of various software and in video games with records
    of the match. After this match your crew or.
    These weaker staff for or towards and you need to strive playing greater stakes but there may be one.
    Huge give attention to soccer tennis basketball horse racing ort baseball and so forth there may be.
    Apply to all geographic regions to get Longball sports activities baseball lock
    you pound100.

  12. Thank you for another informative website. The
    place else may I get that type of information written in such a perfect
    way? I have a project that I’m just now running on, and I’ve been at the look out for such info.

Comments are closed.