Salesforce Apex
Video thumbnail for Find whether apex is currently executed in Trigger Context in Salesforce
Find whether apex is currently executed in Trigger Context in Salesforce

infallibletechie.com

Trigger.isExecuting can be used to find whether apex is currently executed in Trigger Context in Salesforce.

Video thumbnail for SELF REFERENCE FROM TRIGGER Exception in Salesforce with Roll-Up Summary
SELF REFERENCE FROM TRIGGER Exception in Salesforce with Roll-Up Summary

infallibletechie.com

As per the order of execution in Salesforce, "If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure

Video thumbnail for List index out of bounds Exception in Salesforce
List index out of bounds Exception in Salesforce

infallibletechie.com

To avoid the System.ListException: List index out of bounds Exception in Salesforce, make sure the size of the list is checked before fetching list values using the index. For example, if you are trying to fetch list variable's second index values, make

Video thumbnail for Check Daily Workflow Emails Limit in Salesforce
Check Daily Workflow Emails Limit in Salesforce

infallibletechie.com

Check this Blog Link for the Code Snippet: https://www.infallibletechie.com/2022/07/how-to-check-daily-workflow-emails.html

Video thumbnail for How to find fields that are part of a Page Layout in Salesforce?
How to find fields that are part of a Page Layout in Salesforce?

infallibletechie.com

Using the Apex Code snippet shared in my blog post, you can find the fields that are added as part of a page layout in Salesforce. Blog Post: https://www.infallibletechie.com/2022/07/how-to-find-fields-that-are-part-of-2.html

Video thumbnail for Download All the the files for a record in Salesforce using LWC
Download All the the files for a record in Salesforce using LWC

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/07/download-all-the-the-files-for-a-record-in-salesforce-using-lightning-web-component.html

Video thumbnail for Check SingleEmail limit in Salesforce
Check SingleEmail limit in Salesforce

infallibletechie.com

Single Email Limit is subjected to emails sent via API or Apex. There’s no limit on sending single emails to contacts, leads, person accounts, and users in your org directly from account, contact, lead, opportunity, case, campaign, or custom object pages.

Video thumbnail for Hyperlink a column in Salesforce Lightning Web Component lightning datatable
Hyperlink a column in Salesforce Lightning Web Component lightning datatable

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/01/how-to-hyperlink-column-in-lightning.html

Video thumbnail for Filter or Search in Lightning Datatable in Salesforce Lightning Web ComponentLWC
Filter or Search in Lightning Datatable in Salesforce Lightning Web ComponentLWC

infallibletechie.com

To filter or search records in Lightning Datatable, use JavaScript includes(). Doing Apex call and using LIKE operator in the SOQL is not needed as we can filter the records in the Lightning Web Component JavaScript itself. Blog Post: https://www.infalli

Video thumbnail for How to convert Unix Timestamp to DateTime using Apex in Salesforce?
How to convert Unix Timestamp to DateTime using Apex in Salesforce?

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/06/how-to-convert-unix-timestamp-to.html

Video thumbnail for Select a country:territory from the list of valid countries Salesforce Exception
Select a country:territory from the list of valid countries Salesforce Exception

infallibletechie.com

"System.DmlException: Update failed. First exception on row 0 with id 0018c000026ZmPmAAK; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this country, even though it may appear correct. Please select a country/territory from the list of va

Video thumbnail for Date and Datetime formatting in Salesforce Lightning Web Component
Date and Datetime formatting in Salesforce Lightning Web Component

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2020/12/date-and-datetime-in-salesforce-lwc.html

Video thumbnail for ActivityId on EmailMessage Object in Salesforce
ActivityId on EmailMessage Object in Salesforce

infallibletechie.com

We will get INSUFFICIENT_ACCESS_OR_READONLY when we set ActivityId on the EmailMessage record with RelatedToId other than Case Record. Blog Post: https://www.infallibletechie.com/2022/09/activityid-on-emailmessage-object-in-salesforce.html

Video thumbnail for Invoke Salesforce Flow using Apex
Invoke Salesforce Flow using Apex

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/10/how-to-call-salesforce-flow-using-apex.html

Video thumbnail for Find whether Salesforce instance is Up and Active
Find whether Salesforce instance is Up and Active

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/10/how-to-find-whether-salesforce-instance-is-up-and-active.html

Video thumbnail for Salesforce Lightning Web Component Lightning Datatable with row actions
Salesforce Lightning Web Component Lightning Datatable with row actions

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2020/03/lightning-datatable-with-buttonsrow.html

Video thumbnail for Check whether field exists in the object using Salesforce Apex
Check whether field exists in the object using Salesforce Apex

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/10/check-whether-field-exists-in-the-object-using-salesforce-apex.html

Video thumbnail for Create PDF file from String Content using Salesforce Apex
Create PDF file from String Content using Salesforce Apex

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/11/how-to-create-pdf-file-from-string-content-using-salesforce-apex.html

Video thumbnail for Attempt to de reference a null object Salesforce Exception
Attempt to de reference a null object Salesforce Exception

infallibletechie.com

Salesforce Exception "System.NullPointerException: Attempt to de-reference a null object" is thrown when the Apex Code is trying to use/utilise an object that has not been instantiated, or an object's attribute that has not been initialised. Blog Post: h

Video thumbnail for Query Salesforce Picklist Field values using SOQL
Query Salesforce Picklist Field values using SOQL

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2022/10/how-to-query-salesforce-picklist-field-values-using-soql.html

Video thumbnail for IsClientManaged in Salesforce EmailMessage
IsClientManaged in Salesforce EmailMessage

infallibletechie.com

If EmailMessage is created with IsClientManaged flag set to true, then the users can modify EmailMessage.ContentDocumentIds to link file attachments even though the Status of the EmailMessage is not set to Draft. To update EmailMessage.ContentDocumentIds,

Video thumbnail for Iterate list in Salesforce Visualforce Page
Iterate list in Salesforce Visualforce Page

infallibletechie.com

Page Block Table, Data Table, Data List and Apex Repeat can be used to render list in Visualforce page. Blog Post: https://www.infallibletechie.com/2022/02/how-to-iterator-list-in-salesforce.html

Video thumbnail for Infinite Loading in Salesforce lightning datatable
Infinite Loading in Salesforce lightning datatable

infallibletechie.com

Infinite or Lazy Loading in Salesforce Lightning Web Component can be done using lightning-datatable. Please check the following code for reference. For rows selection sample code, please check https://www.infallibletechie.com/2023/02/salesforce-lwc-ligh

Video thumbnail for Salesforce DML Exception Cannot have more than 10 chunks
Salesforce DML Exception Cannot have more than 10 chunks

infallibletechie.com

Exception: System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking. This exception is thrown when List sObject variable has more than 10 records of different types in a mixed fashion of mu

Video thumbnail for Display Error Messages in the Salesforce Visualforce Page
Display Error Messages in the Salesforce Visualforce Page

infallibletechie.com

Blog Post: https://www.infallibletechie.com/2012/10/how-to-display-error-messages-in.html