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. Write more, thats all I have to say. Literally, it seems as though you
    relied on the video to make your point. You clearly know what
    youre talking about, why throw away your intelligence on just posting videos to your
    weblog when you could be giving us something enlightening to read?

  2. I absolutely love your blog and find nearly all of your post’s
    to be just what I’m looking for. Do you offer guest writers to write content for yourself?
    I wouldn’t mind publishing a post or elaborating on many of the subjects you write with regards to here.
    Again, awesome weblog!

  3. Undeniably imagine that that you stated. Your favourite justification seemed to
    be at the internet the easiest factor to remember of. I say to you, I certainly get irked
    at the same time as other folks consider worries that they plainly don’t recognise about.
    You controlled to hit the nail upon the
    top as smartly as outlined out the whole thing without having side-effects
    , folks could take a signal. Will likely be
    again to get more. Thank you

  4. Hi there terrific blog! Does running a blog similar to
    this take a great deal of work? I’ve virtually no expertise in programming however
    I had been hoping to start my own blog soon. Anyway, should you have any suggestions
    or tips for new blog owners please share. I understand this is off subject however I just
    had to ask. Cheers!

  5. Nice post. I was checking constantly this blog and I’m impressed!
    Very helpful information particularly the last part :
    ) I care for such info a lot. I was seeking this certain info for a long
    time. Thank you and good luck.

  6. Thank you for any other magnificent post. Where else could anybody get that kind of
    information in such an ideal approach of writing? I have
    a presentation subsequent week, and I am at the look for such info.

  7. I am not sure where you are getting your information, but
    good topic. I needs to spend some time learning much more or understanding more.
    Thanks for wonderful info I was looking for this info for my
    mission.

  8. Pretty section of content. I just stumbled upon your blog and in accession capital
    to assert that I acquire in fact enjoyed account your blog posts.
    Anyway I will be subscribing to your augment and even I achievement you access consistently fast.

  9. I’m really loving the theme/design of your website.
    Do you ever run into any internet browser compatibility issues?
    A small number of my blog readers have complained about
    my blog not working correctly in Explorer but looks great in Opera.
    Do you have any ideas to help fix this problem?

  10. Hello there! Would you mind if I share your blog with my zynga group?

    There’s a lot of people that I think would really enjoy your
    content. Please let me know. Cheers

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

  12. Excellent article. Keep writing such kind of info on your page.
    Im really impressed by your blog.
    Hello there, You have performed a great job.
    I’ll definitely digg it and in my opinion suggest to my friends.
    I am sure they’ll be benefited from this website.

  13. Great post. I was checking continuously this weblog and I’m inspired!
    Very helpful information specifically the final
    phase 🙂 I take care of such information much. I was looking for this certain information for
    a long time. Thank you and best of luck.

  14. I’m gone to convey my little brother, that he should also pay a quick visit
    this blog on regular basis to obtain updated from latest news.

Comments are closed.