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. This is a great tip especially to those new to the blogosphere.
    Short but very accurate info… Many thanks for sharing this one.

    A must read post!

  2. No llevo mucho periodo usando Internet, probablemente sea porque no sabía lo suficiente.

    Pero tengo que reconocer que páginas web como mi me hace sentir muy bien. Mi nombre es %nombre_simple_masculino.dat% Y soy un pequeño pueblo de %provincias_espana.dat%, comparto montones de gustos y aficiones
    con el resto de la multitud de este blog. Lo único que puedo decir está en hora buena por
    la opinión y el diseño que le habéis dado a esta página.
    Llevo mucho 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 espero poder colaborar en las
    siguientes lineas.

  3. I know this if off topic but I’m looking into starting my own blog and
    was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost
    a pretty penny? I’m not very web smart so I’m not 100% sure.
    Any tips or advice would be greatly appreciated.

    Appreciate it

    Check out my website – kebe.top

  4. Embargo llevo mucho periodo usando Internet, quizá sea porque
    no sabía lo adecuado.

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

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

    Muchas gracias por todo y deseo poder colaborar más adelante.

  5. hi!,I like your writing so so much! percentage we
    be in contact extra approximately your article on AOL?

    I need an expert in this house to resolve my problem.
    Maybe that’s you! Having a look ahead to look you.

  6. Hmm is anyone else encountering problems with the images on this blog
    loading? I’m trying to find out if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  7. Oh my goodness! Incredible article dude! Thanks, However I am having issues
    with your RSS. I don’t understand the reason why I cannot subscribe to it.

    Is there anyone else getting identical RSS issues? Anyone who knows the answer will you kindly respond?

    Thanks!!

  8. This design is spectacular! You definitely know how to keep a reader amused.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent
    job. I really loved what you had to say, and more than that,
    how you presented it. Too cool!

  9. This web site definitely has all of the information and facts
    I needed concerning this subject and didn’t know who to ask.

  10. Hi would you mind stating which blog platform you’re working with?

    I’m going to start my own blog soon but I’m having a hard
    time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique.
    P.S Apologies for being off-topic but I had to ask!

Comments are closed.