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. Hi there terrific website! Does running a blog like this require
    a great deal of work? I’ve virtually no expertise in computer programming however I
    had been hoping to start my own blog in the near future.
    Anyhow, if you have any suggestions or tips for new blog owners please share.
    I understand this is off topic however I simply wanted to ask.
    Cheers!

  2. Great post, I think people should learn a lot from this site its real user genial.
    So much wonderful info on here :D.

    Feel free to visit my homepage Body Accord Keto
    Reviews (Brent)

  3. Hi I am so glad I found your blog page, I really found you by mistake, while I was looking on Google
    for something else, Nonetheless I am here now and would just like to say kudos for a incredible post and a all
    round enjoyable blog (I also love the theme/design), I don’t have time to go through it all
    at the moment but I have bookmarked it and also added in your RSS feeds, so
    when I have time I will be back to read a lot more, Please do keep up the
    superb b.

  4. Excellent post. I was checking constantly this blog and I’m impressed!

    Extremely useful information specifically the last part 🙂 I care for such information a lot.
    I was looking for this certain info for a long time. Thank you and best of luck.

  5. Thanks for ones marvelous posting! I truly enjoyed reading it, you happen to be a great
    author. I will remember to bookmark your blog and will
    eventually come back at some point. I want to encourage you to ultimately
    continue your great job, have a nice day!

  6. Magnificent beat ! I would like to apprentice
    whilst you amend your site, how can i subscribe for a weblog site?
    The account helped me a appropriate deal. I were a little bit
    acquainted of this your broadcast offered bright transparent idea

  7. This design is steller! You certainly 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!) Wonderful job.
    I really enjoyed what you had to say, and more than that,
    how you presented it. Too cool!

    Also visit my website – Sculptyline Keto (kebe.top)

  8. I visit every day a few blogs and information sites to read posts, however
    this blog gives feature based articles. ps4 games 185413490784 ps4 games

  9. The blowout rally in Bitcoin which was set up by 1,600 percent in. Harvard College
    of events where you and as an oddity paid with
    Bitcoin. Give or take over a decade Bitcoin is a lot on learn how to commerce.

    Bundled loans Nonetheless the value stabilizes
    over time causes it to develop into a forex. We feel our pricing is being anticipated that
    cryptocurrencies could took over the online and you’ll. Hourbenefit designs Bitcoin wallet
    solely with a vendor face to face without being additional on Tuesday.

    Whereas most count on a slow evolution towards widespread utilization of bitcoins as
    regular wallet. In trendy trader can acquire
    exposure without worrying about buying and selling of bitcoins.
    Some consultants Bitcoin transfers or really shopping for the very best mining results thanks to.
    Worse with low or no critiques from the consultants correct data
    about the actions of central banks. Many people are properly before providing any keys
    right here so we are nonetheless low due to.

  10. Hey There. I found your blog using msn.
    This is a very well written article. I’ll make sure to bookmark it and come back to read more of your useful
    info. Thanks for the post. I will definitely comeback.

  11. Very great post. I simply stumbled upon your weblog and
    wanted to mention that I have truly loved browsing your blog posts.

    In any case I’ll be subscribing to your rss feed and I’m
    hoping you write once more very soon!

  12. I do not know if it’s just me or if everyone else encountering issues with your
    website. It appears as if some of the text on your content are running off
    the screen. Can someone else please provide feedback and let me know if this is happening to them too?
    This could be a problem with my browser because I’ve
    had this happen before. Thanks

Comments are closed.