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. It is in reality a great and helpful piece of information. I am
    satisfied that you simply shared this useful information with us.
    Please stay us informed like this. Thanks for sharing.

  2. hi!,I love your writing so so much! share we communicate extra about your post on AOL?

    I need a specialist in this space to solve my problem.

    Maybe that is you! Having a look ahead to peer you.

    My web page; 無碼JAV

  3. you’re truly a just right webmaster. The ite loading speed is incredible.
    It seems that you are doing any unique trick. Moreover, The contents are masterpiece.
    you’ve done a wonderful job in this subject!
    website

  4. Hi all, here every person is sharing such familiarity, thus it’s pleasant to read this
    blog, and I used to go to see this weblog daily.

  5. Right here is the perfect site for anyone who
    wants to find out about this topic. You realize so much its almost tough
    to argue with you (not that I really will need to…HaHa).
    You certainly put a new spin on a topic which has been written about
    for ages. Great stuff, just wonderful!

  6. Please let me know if you’re looking for a writer for your weblog.
    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 absolutely love
    to write some articles for your blog in exchange for a
    link back to mine. Please shoot me an email if
    interested. Many thanks!

  7. This is very interesting, You are an overly skilled blogger.

    I have joined your feed and stay up for searching for more of your great post.
    Additionally, I have shared your web site in my social networks

  8. Hi! Would you mind if I share your blog with my facebook group?
    There’s a lot of folks that I think would really appreciate your
    content. Please let me know. Thanks

  9. I blog frequently and I truly appreciate your content.
    The article has really peaked my interest. I’m going to bookmark your website
    and keep checking for new details about once per week.
    I subscribed to your Feed as well.

  10. Woah! I’m really loving the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between superb usability and appearance.
    I must say you have done a fantastic job with
    this. Additionally, the blog loads super quick for me
    on Firefox. Outstanding Blog!

  11. hey there and thank you for your information – I’ve definitely picked upp something
    new from right here. I did however expertise some technical issues using
    this web site, since I experiened to reload the web site a lot of times
    previous to I could gget it to load correctly. I had been wondering iff your hosting is OK?
    Not that I’m complaining, but sluggish loading instances times will very frequently afect your placement in google aand can damage your high-quality score if advertising and marketing with Adwords.
    Welll I’m adding this RSS to my email and can look out for a lot more
    oof your respective exciting content. Makee sure you update
    this avain soon.
    homepage

  12. Nice weblog right here! Also your website quite a
    bit up fast! What host are you the use of? Can I am getting your associate link
    for your host? I desire my web site loaded up as quickly as yours lol

  13. I’m really enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more
    often. Did you hire out a developer to create your theme? Fantastic work!

Comments are closed.