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.
Hi there! I know this is kinda off topic nevertheless I’d
figured I’d ask. Would you be interested in trading links or
maybe guest authoring a blog post or vice-versa? My blog
covers a lot of the same topics as yours and
I feel we could greatly benefit from each other. If
you’re interested feel free to send me an email. I look forward to hearing from you!
Awesome blog by the way!
You should be a part of a contest for one of the finest sites on the internet.
I will highly recommend this web site!
Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you! By the
way, how could we communicate?
I’m pretty pleased to uncover this great site. I wanted to thank you for your time for this particularly wonderful read!!
I definitely loved every bit of it and i also have you book marked to look at new
things in your website.
When I initially commented I clicked the “Notify me when new comments are added” checkbox
and now each time a comment is added I get several emails with the same comment.
Is there any way you can remove me from that service?
Thank you!
Have you ever considered about including a little bit more than just
your articles? I mean, what you say is important and everything.
Nevertheless think of if you added some great pictures or videos to give
your posts more, “pop”! Your content is excellent but with pics and clips,
this blog could undeniably be one of the very best in its field.
Terrific blog!
Hello there, There’s no doubt that your site might be having internet browser compatibility problems.
When I look at your website in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues.
I merely wanted to provide you with a quick heads up!
Besides that, wonderful site!
I read this article сompletely ɑbout the difference of hottest
and prеvious technologies, it’s remarkable article.
My spouse and I absolutely love your blog and find many of your post’s to
be precisely what I’m looking for. Would you offer guest writers to write
content for you personally? I wouldn’t mind creating a post or elaborating on most of the subjects
you write concerning here. Again, awesome web site!
I got this web site from my buddy who told me on the topic off this wehsite and at the moment
this time I am visiting this site andd reading very
informative articles or reviews here.
homepage
Great post. I used to be checking continuously this
weblog and I’m inspired! Very helpful information particularly the remaining
section 🙂 I take care of such info a lot. I was seeking this
particular information for a long time. Thank you and best of luck.
I don’t even know how I ended up here, but I thought this post was great.
I don’t know who you are but definitely you’re going to a famous blogger if you aren’t already 😉 Cheers!
Hello there! Do yyou know if they make any plugins to assist with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results.
If you know oof any please share. Cheers!
web page
Hi there, You have done a fantastic job. I will
definitely digg it and personally suggest to my friends.
I am sure they will be benefited from this site.
Undeniably believe that which you said. Your favorite reason seemed to
be on the internet the easiest thing to be aware of. I say to you,
I definitely get annoyed while people think about worries that they
plainly do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect
, people can take a signal. Will probably be
back to get more. Thanks
An impressive share! I have just forwarded this onto a
co-worker who has been conducting a little homework on this.
And he in fact bought me dinner due to the fact that I discovered it for him…
lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanks for spending time to talk
about this matter here on your blog.
WOW just what I wwas searching for. Caame here by searching for онлайн казино игры
homepage
Hello, yeah this paragraph is truly fastidious and I
have learned lot of things from it concerning blogging.
thanks.
You actually make it seem so easy with your presentation but
I in finding this matter to be really something that I think I’d by no means understand.
It kind of feels too complex and extremely vast for me.
I am having a look ahead on your subsequent post, I’ll try to get the hold of it!
I know this if off topic but I’m looking into starting my own weblog and was wondering
what all is needed to get set up? I’m assuming having a blog like yours would cost a
pretty penny? I’m not very internet smart so I’m not 100% certain. Any suggestions or advice
would be greatly appreciated. Appreciate it