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. With havin so much written content do you ever run into any issues of plagorism
    or copyright violation? My blog has a lot of completely unique content I’ve either authored myself
    or outsourced but it appears a lot of it is popping
    it up all over the internet without my agreement. Do you know any ways to help protect against content from being stolen? I’d genuinely appreciate it.

  2. I feel that is among the most vital information for me.
    And i’m happy studying your article. However should remark on few normal things, The site
    taste is great, the articles is actually excellent :
    D. Good activity, cheers

  3. Simply wish to say your article is as astonishing. The clarity in your post is simply cool and i could assume
    you’re an expert on this subject. Fine with your permission allow me to grab your feed to keep
    up to date with forthcoming post. Thanks a million and please
    carry on the enjoyable work.

    Feel free to visit my homepage: okeepo.co.uk

  4. Magnificent beat ! I wish to apprentice while you amend your website, how
    could i subscribe for a weblog web site? The account aided me a acceptable
    deal. I have been tiny bit familiar of this your broadcast provided bright transparent idea

  5. Unquestionably imagine that which you said. Your favorite
    justification seemed to be on the net the simplest thing to consider of.
    I say to you, I definitely get annoyed even as other folks
    consider worries that they just do not know about.
    You managed to hit the nail upon the top as well as outlined out the whole thing without having side-effects , people could take a signal.
    Will probably be back to get more. Thank you!

    Look at my web-site; Regen Keto [kebe.top]

  6. Hi, I do believe this is a great blog. I stumbledupon it 😉 I
    may come back yet again since i have bookmarked it.
    Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  7. Thank you for every other magnificent article. Where else may just anybody get that type
    of information in such an ideal means of writing?

    I have a presentation next week, and I am on the search for such information.

  8. Saya akan segera genggam rss Anda karena saya tidak bisa
    Sangat keren! Beberapa poin yang
    Hai, Saya percaya ini luar biasa situs web . Saya tersandung;) Saya akan kembali lagi karena saya memiliki
    buku menandai itu. Uang dan kebebasan adalah yang
    terbesar cara untuk berubah, semoga Anda
    kaya dan terus membimbing orang lain.

    My web-site – Situs joker slot

  9. hello there and thank you for your information – I have definitely picked up something new from right here.
    I did however expertise several technical points using this website, as
    I experienced to reload the website lots of times previous to I could get it to load properly.

    I had been wondering if your web hosting is OK? Not that I’m complaining, but sluggish
    loading instances times will very frequently affect your placement in google and can damage your high quality
    score if ads and marketing with Adwords. Well I’m adding this RSS
    to my e-mail and could look out for much more of your respective interesting content.
    Make sure you update this again very soon.

  10. Appreciating the time and effort you put into your website and detailed information you offer.
    It’s nice to come across a blog every once in a while
    that isn’t the same outdated rehashed material. Wonderful read!
    I’ve saved your site and I’m adding your RSS feeds to my Google account.

  11. Hello, I think your site might be having browser compatibility issues.
    When I look at your website in Firefox, it looks fine but when opening in Internet Explorer, it has
    some overlapping. I just wanted to give you a quick heads
    up! Other then that, terrific blog!

Comments are closed.