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 just couldn’t go away your web site prior to suggesting that I really loved the usual
    information an individual provide in your guests?

    Is going to be again incessantly to investigate cross-check new posts

  2. You actually make it seem so easy with your presentation but I find this topic to be actually something which I think I would never understand.

    It seems too complex and extremely broad for me. I am looking forward for your next post, I’ll
    try to get the hang of it!

    Also visit my website :: mega888 kiosk download

  3. wonderful points altogether, you just received a new reader.
    What might you suggest in regards to your put up that you just made a
    few days in the past? Any positive?

  4. Wіtһ havin sߋ much content do you ever run into aany problems of
    plagorism or copүright infringement? My blog has a lot of exclusive
    content I’ѵe either created mʏself or outsourced but it appeɑгs
    a lott of it is popping іt up all over the web wіthout my authorization. Do you know aany methods tо help prfevent content from being riрpeɗ
    off? I’d really appreciate it.

  5. I merely wanted to thank you yet again for this amazing web-site you
    have created here. It is full of ideas for those who
    are actually interested in this subject, primarily this very
    post. You’re really all absolutely sweet and thoughtful of others and also reading your blog posts is a wonderful delight in my opinion. And thats
    a generous gift! Mary and I will have fun making use of your
    suggestions in what we should instead do in the future.
    Our listing is a mile long and simply put tips will be put to excellent use.

    my site :: Body Accord Keto Reviews (the-mcdonalds.com)

  6. You are so awesome! I don’t believe I’ve truly read something like this before.
    So nice to find another person with a few genuine thoughts on this topic.
    Really.. many thanks for starting this up. This web site is something
    that’s needed on the web, someone with a little originality!

  7. Hello to every body, it’s my first visit of this blog; this
    website consists of remarkable and genuinely good
    stuff designed for readers.

  8. Thank you for any other informative web site. The place
    else may I am getting that type of information written in such an ideal manner?
    I’ve a undertaking that I am simply now working on, and I’ve been at the glance out
    for such information.

  9. My coder is trying to persuade me to move to .net
    from PHP. I have always disliked the idea because of the expenses.

    But he’s tryiong none the less. I’ve been using Movable-type
    on several websites for about a year and am
    nervous about switching to another platform. I have heard good things about blogengine.net.
    Is there a way I can transfer all my wordpress content into it?
    Any help would be really appreciated!

  10. Great post. I was checking constantly this blog and I’m impressed!

    Extremely helpful info specifically the last part 🙂 I care for such information much.
    I was looking for this certain info for a very long time.

    Thank you and best of luck.

  11. Hello There. I found your blog using msn. This is a very well
    written article. I will make sure to bookmark it and come back to read more
    of your useful information. Thanks for the post. I’ll definitely comeback.

  12. Howdy! I could have sworn I’ve visited this web site before but after looking at some of the posts I realized it’s new to me.
    Anyhow, I’m definitely happy I came across it and I’ll
    be bookmarking it and checking back frequently!

  13. I’m more than happy to uncover this great site. I wanted to thank you for your time
    for this particularly wonderful read!! I definitely liked every bit of it and i also have you saved to fav
    to check out new stuff in your website.

Comments are closed.