this exception happens when my appointment doesn’t have a Prospect assigned and it tries to retrieve a Phone from a null Prospect and Apex throws an exception.
It is annoying….. right?
Now with the Safe Navigation Operator, it’s possible to avoid this kind of exception.
Now, it is simplified using the Null Coalescing Operator
fullName = patient.fullName ?? "TBD";
this binary operator ?? will check if the left-hand side value is not equal to null and will return that if it is true. OR it will return the right-hand side value of the operator.
I recently got this requirement to create a custom object from Apex. Custom objects, fields, permissions, and all other configurations can be done using an Apex class.
This is a rare scenario which we might face when not using any IDE or Source Control as part of the Salesforce Development.
In order to Delete Apex Classes / Apex Triggers from Production directly using Workbench, Follow the steps from this post and complete your task efficiently.
Open Notepad
Copy the below text and save it as “package.xml” (All files). (Update the Version number accordingly)
Broken Images, error results, error in attachments that are being hosted on a non-secure HTTP page.
We need to make sure that all the connections to and from Salesforce are HTTPS.
Build Customer Trust with the Error Handler System Dialog (Chat Bot)
This feature will be helpful in handling the errors that are occurred after initiated ChatBot. A more detailed description of errors for handling as required.
Refer the security URL in static resources
To maintain security, maintain the URLs in the Static Resources and refer in code.
View All, Modify All, Edit, and Delete Object Permissions Removed for Guest Users
Need to check if the Guest User profile has the Permissions to Create, Read, Update Permissions on the related Objects
Obsolete Permissions from Guest User Profiles Were Removed
Permissions which are not tied to any App are removed from the Guest user Profile.
Guest Users can only have Create and Read only object permissions
Mixed Content Downloads Blocked in Google Chrome
An example of a mixed content download is placing a link to an HTTP site on a Salesforce HTTPS page. This is related to Insecure downloads in Chrome.
Convert the Read Only Standard Profile to a Custom Profile (Update in Summer ‘21)
This update converts the Read Only standard profile to a custom profile. After the update is enforced, you can edit permissions in this profile as your business needs require.
The Read Only Profile Is No Longer Available in New Salesforce Orgs
Salesforce orgs created in Spring ’21 and later don’t have the Read Only standard profile.
Enable HTTPS on Your Domains
Needs to redirect the public site HTTP URLs to HTTPS
Make sure to check all the sites and Sessions settings – The checkbox Require secure connections (HTTPS) for all third-party domains should be checked.
This page has an error. You might just need to refresh it. AuraClientService.postProcess: error in processing [Maximum call stack size exceeded].
As per the document, it is recommended to use different names for the client side and server side methods/actions.
Use unique names for client-side and server-side actions in a component. A JavaScript function (client-side action) with the same name as a server-side action (Apex method) can lead to hard-to-debug issues.
So all you need to do here is, change your client-side controller’s method getAccountRecords to something like getAccountRecordsData.
The delete operation supports cascading deletions. If you delete a parent object, you delete its children automatically, as long as each child record can be deleted.
For example, deleting the account you created earlier (SFDC Account) will delete its related contact too. Execute this snippet in the Anonymous Apex window of the Developer Console.
Account[] queriedAccounts = [
SELECT Id
FROM Account
WHERE Name='SFDC Account'
];
delete queriedAccounts;
Check the accounts and contacts in your org. You’ll see that both the account and its related contact were deleted.
Summer 20 introduced Split List View which was only part of Console Applications.
Dynamic Forms
Dynamic Forms is feature introduce for Lightning record pages. It adds the ability to configure record detail fields and sections inside the Lightning App Builder.
In-App Guidance Builder
From Setup in Lightning Experience, enter In-App Guidance in the Quick Find box, and then select In-App Guidance. Click Add to open the In-App Guidance Builder in a new tab.
For creating prompts and walkthroughs in App Builder:
Help Chat Agents Respond Faster with Einstein Reply Recommendation (New Feature)
Turn on this feature on the Einstein Reply Recommendations page in Setup
Natural language search – lets users enter common words and phrases in the search box to find the records that they want. Natural language search is supported for all major Standard Objects example: Accounts, Cases, contacts. Set up > Quick find > Enable Einstein Search > Follow the Process for setting it up
Critical Update App New Version
View your updates and alerts information in a single page. Set up > Quick find > Type: Release Updates
Lightning Flows
Summer 20 release is introducing more features in Flows to debug Flows faster, more flexibility
Restricted Access to @AuraEnabled Apex Methods Based on User Profile
Once we activated these permission only Authenticated users can access an @AuraEnabled Apex method only when the user’s profile allows access to the Apex class.
Require View Setup Permission to Access Apex Test Data (Update)
Users now need “View Setup and Configuration” permission to access data related to Apex tests, previously it’s not required but because of this changes any user who don’t have these permissions will not be able to see org coverage of org or individual classes.
Detect Errors When an Org Exceeds the Concurrent Long-Running Apex Limit
We can now track “Long-Running Apex Limit” errors with the new ConcurLongRunApexErrEven which is a Real-Time Event Monitoring event. We can use this event to get notified whenever a new Apex request fails to start because our org has exceeded the concurrent long-running Apex request limit.
Delete up to 2,000 Big Object Records in Batch
deleteImmediate() method now supports batch deletes of up to 2,000 big object records at a time.
The following components have changed: lightning-badge lightning-breadcrumb lightning-datatable lightning-input lightning-input-field lightning-tabset lightning-tree-grid Modules