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 not sure where you’re getting your info, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for magnificent information I was looking for this
    information for my mission.

  2. That is a great tip especially to those fresh to the blogosphere.
    Simple but very precise information… Appreciate your sharing
    this one. A must read post!

  3. Hey! I understand this is sort of off-topic but I needed to ask.
    Does operating a well-established website like yours take a large amount of work?
    I am completely new to operating a blog however I
    do write in my journal daily. I’d like to start a blog so I will be able to share my experience and feelings online.
    Please let me know if you have any kind of ideas or tips for brand new aspiring bloggers.

    Appreciate it!

    Also visit my website … xe88 web

  4. What’s up, yup this piece of writing is in fact pleasant and
    I have learned lot of things from it on the topic of
    blogging. thanks.

    my site; Regen Keto Reviews, Rhoda,

  5. Greate post. Keep posting such kind of info on your blog.

    Im really impressed by your blog.[X-N-E-W-L-I-N-S-P-I-N-X]Hi there, You’ve done an excellent job.
    I’ll definitely digg it and in my view suggest to my friends.
    I’m sure they’ll be benefited from this site.

    Also visit my web blog http://www.inovando.pt

  6. Hello, Neat post. There’s a problem with your website
    in internet explorer, would test this? IE still is the marketplace
    chief and a huge element of other people will omit your wonderful writing
    due to this problem.

  7. Great beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog website?
    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  8. Aw, this was an exceptionally nice post. Taking the
    time and actual effort to create a superb article… but what can I say… I put
    things off a whole lot and don’t seem to get nearly anything done.

    my web page … download mega88

  9. That is a great tip particularly to those fresh to the blogosphere.
    Simple but very accurate info… Thanks for sharing this one.
    A must read article!

    Have a look at my site :: xe888 apk

  10. Hi! This post couldn’t be written any better! Reading through this post reminds me of my good old room mate!
    He always kept talking about this. I will forward this post
    to him. Pretty sure he will have a good read. Thank you for sharing!

    Look at my page … mega88 Test id

  11. whoah this blog is magnificent i like reading your articles.
    Keep up the good work! You know, a lot of people are hunting
    around for this info, you could aid them greatly.

Comments are closed.