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 topic which is close to my heart…
    Many thanks! Where are your contact details though?

    Feel free to surf to my blog post :: A片

  2. Wow, superb weblog structure! How lengthy have you ever been running a blog for?
    you make running a blog glance easy. The total glance of your site is great, let alkone the content material!

    web page

  3. You’re so interesting! I don’t think I’ve read something
    like this before. So great to discover somebody with
    some genuine thoughts on this subject. Seriously.. thanks for starting this up.
    This site is one thing that is needed on the web, someone with a little originality!

    Here is my webpage … download Game mega888

  4. It’s a pity you don’t have a donate button! I’d certainly donate to this brilliant blog!
    I guess for now i’ll settle for book-marking and
    adding your RSS feed to my Google account. I look forward
    to new updates and will share this website with my Facebook
    group. Talk soon!

  5. I’m really impressed together with your writing abilities as
    smartly as with the layout in your blog. Is that this a
    paid subject matter or did you modify it yourself? Either
    way keep up the excellent quality writing, it
    is uncommon to see a nice weblog like this one nowadays..

  6. Awesome! Its genuinely remarkable paragraph, I have got much clear idea on the topic of from this piece of writing.

    Also visit my website; go here (Harley)

  7. Appreciating the hard work you put into your site and in depth information you offer.
    It’s great to come across a blog every once
    in a while that isn’t the same old rehashed information. Excellent read!
    I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

  8. Thanks for your personal marvelous posting! I definitely enjoyed reading it, you’re a great author.I will be sure to
    bookmark your blog and may come back at some point. I want to encourage one to continue
    your great posts, have a nice weekend!

  9. I am really enjoying the theme/design of your weblog. Do you ever
    run into any web browser compatibility problems? A number
    of my blog readers have complained about my blog not working
    correctly in Explorer but looks great in Chrome. Do you have any recommendations to help fix this issue?

  10. Have you ever considered about adding a little bit more than just your articles?
    I mean, what you say is fundamental and everything.
    Nevertheless just imagine if you added some great images or videos to give your posts more, “pop”!
    Your content is excellent but with pics and videos, this blog could undeniably be
    one of the greatest in its field. Amazing blog!

    Also visit my website … 成人影片

Comments are closed.