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.
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.
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.
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.
This is really interesting, You’re a very skilled blogger.
I’ve joined your rss feed and look forward to seeking more
of your fantastic post. Also, I have shared your web site in my social networks!
Link exchange is nothing else however it is only placing the other person’s website link
on your page at suitable place and other person will also do similar for you.
Remarkable issues here. I am very happy to look your article.
Thank you a lot and I’m having a look ahead to contact you.
Will you kindly drop me a e-mail?
May I simply just say what a comfort to discover somebody that really understands what they are talking about on the net.
You certainly know how to bring an issue to light and make it important.
More and more people must read this and understand this side of your story.
I can’t believe you’re not more popular because you most certainly have the gift.
Hi! I’ve been following your weblog for a while now and finally got the courage
to go ahead and give you a shout out from Kingwood Texas!
Just wanted to say keep up the fantastic job!
Good day! This is my first comment here so I just wanted to give a quick shout out and tell you I truly
enjoy reading through your blog posts. Can you suggest any other blogs/websites/forums that deal with the same topics?
Appreciate it!
Very nice post. I simply stumbled upon your weblog and wanted to
mention that I have really loved surfing around your weblog
posts. In any case I will be subscribing in your feed and I am hoping
you write once more soon! https://bet1casino.net/
Very rapidly this website will be famous amid all blogging and site-building viewers, due to it’s
pleasant posts
Here is my website – live22 company
This post is worth everyone’s attention. Where can I find out more?
Hey I know this is off topic but I was wondering if
you knew of any widgets I could add to my blog that automatically tweet my newest twitter
updates. I’ve been looking for a plug-in like this for quite some time and
was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy reading your blog and I look forward
to your new updates.
Have you ever considered cresting an ebook or guest authoring onn other websites?
I have a blopg centered on the same subjects you discuss and wouhld really likke to have yoou share some stories/information. I
know my viewers wwould appreciate your work.
If you are even remotely interested, feel free to send mee an e-mail.
web site
It’s in fact very difficult in this active life to listen news on TV, therefore I only use internet for that purpose, and get the most up-to-date information.
I am curious to find out what blog platform you have been working with?
I’m experiencing some small security issues with my latest blog and I’d like to find something more safe.
Do you have any recommendations?
First of all I would like to say superb blog!
I had a quick question in which I’d like to
ask if you do not mind. I was curious to find out how you center yourself and clear your
thoughts before writing. I’ve had a hard time clearing my thoughts in getting my ideas out there.
I truly do take pleasure in writing however it
just seems like the first 10 to 15 minutes are lost just trying to
figure out how to begin. Any recommendations or hints?
Many thanks!
When someone writes an paragraph he/she retains the thought of a user in his/her
mind that how a user can be aware of it. So that’s why this
piece of writing is great. Thanks!
You really make it seem so easy together with your presentation but I to find this
topic to be actually something which I feel I might never understand.
It kind of feels too complex and extremely
wide for me. I’m looking forward to your next publish, I will attempt to get the cling of it!
Hi there, this weekend is pleasant in support of me, since this moment i am reading this wonderful educational piece
of writing here at my house.
Hi there i am kavin, its my first time to commenting anywhere, when i
read this post i thought i could also create comment due to this good paragraph.
Hey! Do you know if they make any plugins to safeguard against hackers?
I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?
Hey there! Would you minmd if I share your blog with my zynga group?
There’s a lot of people that I think would really enjoy yoiur content.
Please let me know. Many thanks
webpage