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. Admiring the dedication you put into your website and in depth information you provide.
    It’s nice to come across a blog every once in a while that
    isn’t the same outdated rehashed information. Fantastic read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  2. Hi, Neat post. There’s a problem with your website in web explorer, may check this?
    IE still is the market chief and a big section of other people will leave out your excellent
    writing because of this problem.

  3. I think what you published made a ton of sense.
    But, consider this, suppose you added a little content?
    I ain’t saying your information is not good., but suppose you added a title to possibly get a person’s attention?
    I mean Salesforce Winter ’21 Release Notes (Developer Perspective) – SFDCians is a little boring.
    You might look at Yahoo’s front page and note how they
    create news titles to get people to click. You might try adding a video or a pic or two to get readers
    excited about everything’ve got to say. In my opinion, it might bring your posts a little livelier.

  4. This design is incredible! You definitely know how to keep a reader entertained.
    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!

  5. Oh my goodness! Awesome article dude! Thank you so much,
    However I am experiencing difficulties with your RSS.
    I don’t know why I am unable to subscribe to it. Is there anybody else having identical RSS problems?
    Anybody who knows the answer will you kindly respond?

    Thanx!!

  6. This is very interesting, You’re a very skilled blogger.

    I’ve joined your feed and look forward to seeking more of
    your wonderful post. Also, I’ve shared your site
    in my social networks!

  7. Hi there! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
    My website discusses a lot of the same topics as yours and I believe we could
    greatly benefit from each other. If you’re interested feel free to
    send me an e-mail. I look forward to hearing from you! Awesome blog by the way!

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

    Pero tengo que reconocer que páginas web como esta me hace notar 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
    generosa por la opinión y el diseño que le habéis dado a esta
    página. Llevo bastante tiempo buscando información parecida y no he dado con ella.

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

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

  9. No llevo mucho tiempo usando Internet, probablemente sea porque
    no sabía lo competente.

    Pero tengo que reconocer que páginas web como
    mi me hace sentir muy bien. Esta nombre es %nombre_simple_masculino.dat% Y soy un pequeño pueblo de %provincias_espana.dat%, comparto numerosos gustos
    y aficiones con el resto de la gente 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 mi página.

    Llevo altamente 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.

  10. I think this is among the most vital information for me.
    And i am glad reading your article. But wanna remark on some general things, The web site style is perfect,
    the articles is really great : D. Good job, cheers

  11. Awesome things here. I am very glad to look your article.
    Thank you a lot and I’m taking a look forward to touch you.

    Will you kindly drop me a mail?

Comments are closed.