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. Currently it sounds like Drupal is the top blogging platform available
    right now. (from what I’ve read) Is that what you’re
    using on your blog?

  2. Whoa! This blog looks just like my old one!
    It’s on a totally different subject but it has pretty much the same page layout and design. Outstanding
    choice of colors! asmr 0mniartist

  3. Hi there, for all time i used to check blog posts
    here early in the morning, for the reason that i enjoy to find out more and more.

  4. Hi! This post couldn’t be written any better! Reading this post reminds
    me of my old room mate! He always kept talking about this.
    I will forward this page to him. Fairly certain he will have a good read.
    Many thanks for sharing!

  5. Hello there, I discovered your web site via Google while looking for a
    similar subject, your website got here up, it appears good.
    I have bookmarked it in my google bookmarks.
    Hi there, just changed into alert to your weblog
    thru Google, and located that it is really informative.
    I’m going to be careful for brussels. I’ll appreciate should you continue this in future.

    Lots of other people shall be benefited out of your writing.
    Cheers!

  6. I don’t even know the way I ended up right here, but I thought this publish was once great.
    I do not recognize who you’re however definitely you’re going to a well-known blogger when you aren’t already.
    Cheers!

  7. I’m really enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you
    hire out a developer to create your theme? Fantastic
    work!

  8. Hi there! Thiis blog post could not be written any better!

    Going through this article reminds me of my previous roommate!
    He continually kept preaching about this. I am going to forwward this information to him.
    Pretty sure he’s going to have a good read. Thanks for sharing!

    Feeel ffree to visit my blog post reallifecam, real life cam, reallife cam, reallifecam com, voyeur house,voyeurhouse,porn

  9. I got this website from my pal who shared with me about this
    site and at the moment this time I am browsing this website and reading very informative posts at this place.
    0mniartist asmr

  10. Hi there superb website! Does running a blog such as this require
    a lot of work? I have absolutely no knowledge of computer programming but I had been hoping to start
    my own blog soon. Anyhow, should you have any suggestions or
    techniques for new blog owners please share. I understand
    this is off subject nevertheless I simply needed to
    ask. Kudos!

  11. What you said was actually very reasonable.

    But, what about this? what if you typed a catchier title?
    I am not suggesting your information is not good., however suppose you added something
    that grabbed people’s attention? I mean Salesforce Winter ’21 Release
    Notes (Developer Perspective) – SFDCians
    is a little boring. You might glance at Yahoo’s front page and watch how they create article
    titles to get people interested. You might try adding a video or a picture or two to get people interested about what you’ve got to say.
    Just my opinion, it would bring your blog a little livelier.

  12. I like the valuable information you provide on your articles.
    I will bookmark your blog and take a look at once more here
    frequently. I am relatively certain I’ll learn a lot of new stuff right right here!

    Best of luck for the next!

  13. This is really attention-grabbing, You’re a very skilled blogger.
    I have joined your rss feed and stay up for seeking more of your wonderful post.
    Also, I’ve shared your website in my social networks

Comments are closed.