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. Hello my friend! I want to say thqt this article is awesome, great written and
    include almost all important infos. I would like to look more posts like this .

    homepage

  2. Pretty component of content. I simply stumbled upon your web site and in accession capital to claim that I get in fact loved account your weblog posts.
    Anyway I will be subscribing in your augment and even I fulfillment you get admission to constantly fast.

    my homepage – akaun test mega888

  3. Good day very cool site!! Man .. Beautiful ..
    Superb .. I will bookmark your web site and take the feeds also?
    I am happy to search out so many helpful information here within the publish, we need
    develop extra techniques in this regard, thanks for sharing.
    . . . . .

  4. Hi, i think that i saw you visited my weblog thus i came to “return the favor”.I am attempting to find things to enhance my site!I suppose its ok to
    use a few of your ideas!!

  5. Have you ever thought about publishing an ebook or guest authoring on other websites?
    I have a blog based upon on the same subjects you discuss and would love to have you share some stories/information. I
    know my audience would value your work. If you are even remotely interested,
    feel free to send me an email.

  6. Hi everyone, it’s my first visit at this webb page, and paragraph
    is genuinely fruitful dwsigned for me, keep up posting such posts.

    Train muscles web site pump muscle

  7. Wonderful article! That is the kind of information that
    are supposed to be shared across the web. Disgrace on the seek engines for now not positioning this publish higher!
    Come on over and consult with my website .
    Thank you =)

  8. You can certainly see your enthusiasm within the work you write.
    The world hopes for more passionate writers like you
    who are not afraid to say how they believe. Always go after your heart.

    Feel free to visit my web blog; joker123 online;
    sapptek.com,

  9. Wonderful items from you, man. I’ve consider your stuff
    prior to and you are just extremely great. I really like what
    you have bought right here, certainly like what you’re saying
    and the best way in which you say it. You’re making it entertaining and
    you still take care of to stay it wise. I cant
    wait to read much more from you. This is really a tremendous site.

  10. This is very interesting, You’re a very skilled blogger.
    I have joined your feed and look forward to
    seeking more of your wonderful post. Also, I’ve shared your
    site in my social networks!

  11. I have read several good stuff here. Certainly worth bookmarking
    for revisiting. I wonder how so much attempt
    you set to create any such magnificent informative site.

    Check out my web page – Text speak

  12. Everything composed was actually very reasonable. But, what about this?
    what if you were to create a killer headline?
    I am not suggesting your information isn’t solid, however suppose you
    added a post title that makes people want more? I mean Salesforce Winter ’21 Release Notes
    (Developer Perspective) – SFDCians is a little
    vanilla. You could glance at Yahoo’s front page and
    see how they create news titles to grab viewers interested.
    You might add a related video or a related pic or two to get people interested about what you’ve
    got to say. In my opinion, it would make your posts a little livelier.

  13. Oh my goodness! Amazing article dude! Thank you, However I am going through difficulties with your RSS.

    I don’t understand the reason why I am unable to join it.
    Is there anybody else getting the same RSS issues? Anyone who
    knows the answer can you kindly respond? Thanks!!

  14. You actually make it seem so easy together with your
    presentation however I find this matter to be actually one thing which I feel I
    would by no means understand. It seems too complicated
    and very broad for me. I’m taking a look ahead to your subsequent publish, I will attempt to get the hold of it!

Comments are closed.