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 really interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more
    of your fantastic post. Also, I have shared your web site in my social networks!

  2. Link exchange is nothing else however it is only placing the other person’s website link
    on your page at suitable place and other person will also do similar for you.

  3. May I simply just say what a comfort to discover somebody that really understands what they are talking about on the net.
    You certainly know how to bring an issue to light and make it important.
    More and more people must read this and understand this side of your story.
    I can’t believe you’re not more popular because you most certainly have the gift.

  4. Hi! I’ve been following your weblog for a while now and finally got the courage
    to go ahead and give you a shout out from Kingwood Texas!
    Just wanted to say keep up the fantastic job!

  5. Good day! This is my first comment here so I just wanted to give a quick shout out and tell you I truly
    enjoy reading through your blog posts. Can you suggest any other blogs/websites/forums that deal with the same topics?
    Appreciate it!

  6. Hey I know this is off topic but I was wondering if
    you knew of any widgets I could add to my blog that automatically tweet my newest twitter
    updates. I’ve been looking for a plug-in like this for quite some time and
    was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your blog and I look forward
    to your new updates.

  7. Have you ever considered cresting an ebook or guest authoring onn other websites?
    I have a blopg centered on the same subjects you discuss and wouhld really likke to have yoou share some stories/information. I
    know my viewers wwould appreciate your work.
    If you are even remotely interested, feel free to send mee an e-mail.

    web site

  8. It’s in fact very difficult in this active life to listen news on TV, therefore I only use internet for that purpose, and get the most up-to-date information.

  9. I am curious to find out what blog platform you have been working with?
    I’m experiencing some small security issues with my latest blog and I’d like to find something more safe.
    Do you have any recommendations?

  10. First of all I would like to say superb blog!

    I had a quick question in which I’d like to
    ask if you do not mind. I was curious to find out how you center yourself and clear your
    thoughts before writing. I’ve had a hard time clearing my thoughts in getting my ideas out there.
    I truly do take pleasure in writing however it
    just seems like the first 10 to 15 minutes are lost just trying to
    figure out how to begin. Any recommendations or hints?
    Many thanks!

  11. When someone writes an paragraph he/she retains the thought of a user in his/her
    mind that how a user can be aware of it. So that’s why this
    piece of writing is great. Thanks!

  12. You really make it seem so easy together with your presentation but I to find this
    topic to be actually something which I feel I might never understand.

    It kind of feels too complex and extremely
    wide for me. I’m looking forward to your next publish, I will attempt to get the cling of it!

  13. Hey there! Would you minmd if I share your blog with my zynga group?
    There’s a lot of people that I think would really enjoy yoiur content.
    Please let me know. Many thanks
    webpage

Comments are closed.