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.
Fascinating blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really make my
blog shine. Please let me know where you got your theme. With thanks
If you desire to grow your familiarity just keep visiting this web
site and be updated with the newest gossip posted here.
Awesome issues here. I’m very satisfied to see your article.
Thanks so much and I’m taking a look forward to contact you.
Will you kindly drop me a mail?
It’s remarkable to pay a quick visit this site and reading the views
of all mates about this paragraph, while I am also eager of getting know-how.
Hello there, I discovered your website via Google while searching for
a similar subject, your website got here up, it looks great.
I’ve bookmarked it in my google bookmarks.
Hi there, simply became alert to your weblog thru Google, and found that it’s truly
informative. I am going to watch out for brussels.
I’ll appreciate if you continue this in future. Numerous other
folks shall be benefited out of your writing. Cheers!
Thanks for the auspicious writeup. It in fact was once a enjoyment account it.
Look complicated to more added agreeable from you!
By the way, how can we keep up a correspondence?
Valuable information. Lucky me I discovered your web site unintentionally,
and I’m shocked why this coincidence didn’t happened in advance!
I bookmarked it.
bookmarked!!, I really like your blog!
Great information. Lucky me I discovered your website
by accident (stumbleupon). I’ve saved it
for later!
Hi, I was aiming to sell my house as well as get a new residence Houses
For Sale In Richmond Hill Ontario Canada, as well
as simply wished to upload my personal review for the best realty
agent that I have actually managed lately that I was really happy with and also I extremely recommend, he helped me market my
home and got me the very best highest possible price,
as well as when I acquired my brand-new house from him, he was terrific at
working out which obtained me the most effective deal, he’s very specialist as well as exceptionally worth handling, his name is Basil Fatouhi Hadad.
Fantastic website. Lots of useful information here.
I am sending it to several friends ans additionally sharing
in delicious. And of course, thanks for your effort!
It is perfect time to make some plans for the future and it is
time to be happy. I’ve read this submit and if I
could I desire to suggest you some attention-grabbing things or tips.
Maybe you can write subsequent articles regarding this article.
I wish to read more issues approximately it!
I was recommended this web site by my cousin. I am
not sure whether this post is written by him as no one else know
such detailed about my trouble. You are wonderful! Thanks!
Hey there! I’m at work browsing your blog from my new iphone 3gs!
Just wanted to say I love reading your blog and look forward to all your posts!
Carry on the outstanding work!
I am no longer certain the place you are getting your information, but good topic.
I needs to spend a while finding out more
or figuring out more. Thanks for great information I used to be on the lookout for this info for my mission.
Hi there to every body, it’s my first pay a visit of this webpage; this weblog
contains awesome and truly excellent material designed for visitors.
I visited various web sites however the audio feature for audio songs
current at this web site is really superb.
Hey very interesting blog!
I am actually grateful to the owner of this web page who has shared this great post at here.
This is very interesting, You are a very skilled blogger.
I have joined your rss feed and look forward to seeking more of your wonderful post.
Also, I’ve shared your web site in my social networks!