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. Pretty nice post. I just stumbled upon your blog and wanted to say that I
    have really enjoyed browsing your blog posts. After all I will
    be subscribing to your feed and I hope you write again very soon!

  2. My programmer is trying to convince me to move to .net
    from PHP. I have always disliked the idea because of the expenses.
    But he’s tryiong none thee less. I’ve been using Movable-type on a
    number of websites for about a year and am nervous about switching to
    another platform. I have heard great things about blogengine.net.
    Is there a way I can iimport all my wordpress content into it?
    Any kind of help would be really appreciated!

    my homepage :: 德国广告网

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

  4. For newest information you have to pay a quick visit the web and
    on internet I found this site as a most excellent web site for newest updates.

  5. I think this is one of the so much important information for me.

    And i am glad reading your article. But want to observation on some
    common things, The site taste is great, the articles is truly great : D.
    Excellent job, cheers

    Here is my site: Asian Massage

  6. I was very happy too uncover this page. I need to too thank you for your
    time due to this wonderful read!! I definitely savored every part of it andd I
    have you bookmarked to see new stuff in your web site.

    site

  7. Fіne ѡay of describing, and good paragraph tо tаke data гegarding my presentation subject matter, ᴡhich і аm ցoing to convey in institution οf hіgher education.

  8. I blog quite often and I really appreciate your information. This great article has really peaked my
    interest. I am going to take a note of your blog and keep checking for
    new details about once per week. I subscribed to your Feed as well.

  9. Ꮐreetings! Ⅴery helpful advice in tһis particular article!

    It’s tһe ⅼittle cһanges which ԝill mɑke thе largest сhanges.

    Many tһanks for sharing!

  10. I blog frequently and I truly appreciate your information.
    Your article has really peaked my interest.

    I’m going to bookmark your website and keep checking for new information about once a week.
    I opted in for your Feed as well.

  11. I constantly emailed this web site post page to all my contacts, because if like to read it then my contacts will too.

Comments are closed.