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. Hey there! Someone in my Facebook group shared this website
    with us so I came to give it a look. I’m definitely enjoying the information.
    I’m bookmarking and will be tweeting this to my followers!
    Great blog and wonderful design.

    my website … Ultra Keto Advanced [coenergyloan.com]

  2. naturally like your web site but you have to test the spelling on several of your posts.
    Several of them are rife with spelling problems
    and I to find it very troublesome to tell the reality nevertheless I will definitely come back again.

  3. Hi! I’m at work surfing around your blog from my new iphone
    4! Just wanted to say I love reading your blog and look
    forward to all your posts! Keep up the outstanding work!

  4. What’s Taking place i am new to this, I stumbled upon this I’ve discovered It absolutely useful and it has aided me out loads.
    I am hoping to give a contribution & help
    other users like its helped me. Good job.

  5. Wow, that’s what I was searching for, what a information! existing here at this blog, thanks
    admin of this web site.

  6. I blog quite often and I seriously thank you for your content.
    This article has really peaked my interest. I will book mark your blog and
    keep checking for new details about once per week. I subscribed to your RSS
    feed as well.

  7. I’ve been surfing online more than three hours as of late, but I never found any interesting
    article like yours. It is pretty worth enough for me.

    In my opinion, if all webmasters and bloggers made good content material as you probably did, the web will probably be a
    lot more helpful than ever before.

  8. Nadie llevo mucho tiempo usando Internet, probablemente sea porque no sabía lo suficiente.

    Pero tengo que reconocer que páginas web
    como esta me hace sospechar muy bien. Esta nombre es %nombre_simple_masculino.dat% Y soy un pequeño pueblo de %provincias_espana.dat%,
    comparto montones de gustos y distracciones con el resto de la gente de este blog.
    Lo único que puedo decir existe en hora generosa por la opinión y el diseño que le habéis
    dado a mi página. Llevo bastante tiempo buscando averiguamiento parecida y no
    he dado con ella.

    A fin de que seré un usuario habitual de la web.

    Muchas gracias lucro todo y deseo poder colaborar en las siguientes lineas.

  9. Heya! I know this is kind of off-topic but
    I needed to ask. Does running a well-established blog like yours take
    a large amount of work? I’m brand new to operating
    a blog however I do write in my journal every day.
    I’d like to start a blog so I can easily share my personal
    experience and feelings online. Please let me know if you have any ideas
    or tips for brand new aspiring blog owners. Appreciate it!

  10. Howdy, i read your blog from time to time and i own a similar one
    and i was just curious if you get a lot of spam feedback?
    If so how do you reduce it, any plugin or anything you can suggest?
    I get so much lately it’s driving me mad so any assistance is very much appreciated.

    Visit my blog post – http://www.biaozhuxinxi.com

  11. I was suggested this website by my cousin. I’m not sure whether this post is written by him as
    nobody else know such detailed about my trouble. You’re wonderful!

    Thanks!

  12. you’re in reality a excellent webmaster. The web site loading pace is incredible.
    It kind of feels that you are doing any distinctive
    trick. Furthermore, The contents are masterwork. you’ve
    performed a fantastic process in this subject!

    My homepage: Max Heal CBD Oil (forum.lsbclan.net)

  13. No llevo mucho período usando Internet, quizá sea porque no sabía
    lo adecuado.

    Pero tengo que reconocer que páginas web como esta me hace sospechar muy bien. Esta nombre es %nombre_simple_masculino.dat% Y soy un pequeño pueblo de %provincias_espana.dat%, comparto muchos gustos y aficiones con el resto de la
    multitud de este blog. Lo único que puedo decir es en hora benigna por la calidad y el diseño que le habéis dado a mi página.
    Llevo mucho tiempo buscando averiguamiento parecida y no he dado con ella.

    Así que seré un usuario usual de la web.

    Muchas gracias lucro todo y espero poder colaborar en mi aporte.

Comments are closed.