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. Good post. I learn something totally new and challenging
    on sites I stumbleupon on a daily basis. It will always be interesting
    to read through content from other writers and use a little something
    from their sites.

  2. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a
    comment is added I get three emails with the same comment.

    Is there any way you can remove people from that service? Thanks!
    games ps4 allenferguson games ps4

  3. Does your website have a contact page? I’m having problems locating it but, I’d like to send you an e-mail.
    I’ve got some creative ideas for your blog you might be interested in hearing.
    Either way, great website and I look forward to seeing it grow over time.

    Feel free to surf to my homepage xe88com

  4. I would like to take the opportunity of thanking you for the
    professional guidance I have usually enjoyed visiting your site.
    I’m looking forward to the actual commencement of my college research and
    the entire planning would never have been complete without consulting this site.
    If I can be of any help to others, I might be ready to help by way
    of what I have discovered from here.

    Take a look at my web page :: Sculptyline Pro Keto Premium Weight Loss Formula

  5. Greetings! Very useful advice within this post! It’s the little changes that will make the most significant
    changes. Many thanks for sharing!

    Feel free to visit my blog post … 918kaya apk – Roy,

  6. I do not know if it’s just me or if everyone else
    encountering problems with your website. It appears as if some of the text on your content are running
    off the screen. Can someone else please comment and let me know if this is happening
    to them too? This could be a issue with my internet browser because I’ve had this happen previously.
    Cheers

    Also visit my web-site … PrimaFreshia Keto Reviews (kebe.top)

  7. I’m not that much of a internet reader to be
    honest but your sites really nice, keep it up! I’ll go ahead and bookmark your site to come back in the future.
    Cheers

    Also visit my website :: 918kaya

  8. wonderful points altogether, you simply won a new reader.
    What might you suggest in regards to your publish that you made some days in the past?
    Any certain?

    my webpage: xe88

  9. Thank you for sharing excellent informations. Your web site is
    so cool. I’m impressed by the details that
    you have on this site. It reveals how nicely you understand this subject.
    Bookmarked this web page, will come back for extra articles.
    You, my friend, ROCK! I found just the information I already searched all over the place and just could not come across.

    What a great site.

    My page – Ultra Keto Advanced Ingredients (eastnorfolkmilitia.co.uk)

  10. Please let me know if you’re looking for a article
    writer for your blog. You have some really good posts and I believe I would be a good asset.
    If you ever want to take some of the load off, I’d love to write some material for
    your blog in exchange for a link back to mine. Please shoot me an email if interested.
    Thank you!

    my web blog – pussy88 slot

  11. Howdy would you mind letting me know which web host you’re using?
    I’ve loaded your blog in 3 different web browsers and I must say this
    blog loads a lot quicker then most. Can you recommend a good internet
    hosting provider at a fair price? Thanks a lot, I appreciate it!

    Also visit my website … scr888 ios

Comments are closed.