
Find whether apex is currently executed in Trigger Context i...
3K views · Jun 11, 2022 infallibletechie.com
Trigger.isExecuting can be used to find whether apex is currently executed in Trigger Context in Salesforce.

SELF REFERENCE FROM TRIGGER Exception in Salesforce with Rol...
931 views · Jun 15, 2022 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." It will do the Save Procedure again due to Roll-Up calculation. So, in before trigger context, avoid updating records which will recalculate the Roll-Up calculation.

List index out of bounds Exception in Salesforce
104K views · Jun 16, 2022 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 sure the size of the list is greater than or equal to 3. Note: Index starts from 0 and not from 1.

Check Daily Workflow Emails Limit in Salesforce
5K views · Jul 5, 2022 infallibletechie.com
Check this Blog Link for the Code Snippet: https://www.infallibletechie.com/2022/07/how-to-check-daily-workflow-emails.html

How to find fields that are part of a Page Layout in Salesfo...
1K views · Jul 12, 2022 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

Download All the the files for a record in Salesforce using ...
38K views · Jul 13, 2022 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

Check SingleEmail limit in Salesforce
2K views · Jul 28, 2022 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. Blog Post: https://www.infallibletechie.com/2022/07/how-to-check-singleemail-limit-in.html

Hyperlink a column in Salesforce Lightning Web Component lig...
11K views · Sep 29, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/01/how-to-hyperlink-column-in-lightning.html

Filter or Search in Lightning Datatable in Salesforce Lightn...
5K views · Sep 22, 2022 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.infallibletechie.com/2022/01/filtersearch-in-lightning-datatable-in.html

How to convert Unix Timestamp to DateTime using Apex in Sale...
65K views · Sep 19, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/06/how-to-convert-unix-timestamp-to.html

Select a country:territory from the list of valid countries ...
3K views · Sep 20, 2022 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 valid countries.: [BillingCountry]" exception occurs when the Country value used is not present in "Configure States, Countries, and Territories". Blog Post: https://www.infallibletechie.com/2022/09/salesforce-fieldintegrityexception-theres-a-problem-with-this-country-even-though-it-may-appear-correct-please-select-a-country-territory-from-the-list-of-valid-countries-billingcountry-exc.html

Date and Datetime formatting in Salesforce Lightning Web Com...
23K views · Oct 14, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2020/12/date-and-datetime-in-salesforce-lwc.html

ActivityId on EmailMessage Object in Salesforce
8K views · Oct 23, 2022 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

Invoke Salesforce Flow using Apex
7K views · Oct 24, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/10/how-to-call-salesforce-flow-using-apex.html

Find whether Salesforce instance is Up and Active
4K views · Oct 30, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/10/how-to-find-whether-salesforce-instance-is-up-and-active.html

Salesforce Lightning Web Component Lightning Datatable with ...
7K views · Dec 7, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2020/03/lightning-datatable-with-buttonsrow.html

Check whether field exists in the object using Salesforce Ap...
22K views · Dec 19, 2022 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/10/check-whether-field-exists-in-the-object-using-salesforce-apex.html

Create PDF file from String Content using Salesforce Apex
8K views · Jan 16, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/11/how-to-create-pdf-file-from-string-content-using-salesforce-apex.html

Attempt to de reference a null object Salesforce Exception
38K views · Jan 23, 2023 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: https://www.infallibletechie.com/2022/10/attempt-to-de-reference-a-null-object-salesforce-exception.html

Query Salesforce Picklist Field values using SOQL
11K views · Feb 1, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/10/how-to-query-salesforce-picklist-field-values-using-soql.html

IsClientManaged in Salesforce EmailMessage
13K views · Feb 8, 2023 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, ContentDocumentLink records should be created. IsClientManaged in Salesforce EmailMessage is used to automatically create task record when the EmailMessage record is created if Enhanced Email is enabled. Blog Post https://www.infallibletechie.com/2023/02/isclientmanaged-in-salesforce-emailmessage.html

Iterate list in Salesforce Visualforce Page
3K views · Feb 10, 2023 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

Infinite Loading in Salesforce lightning datatable
25K views · Feb 22, 2023 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-lightning-datatable-with-row-selection.html. Blog Post: https://www.infallibletechie.com/2023/02/infinite-loading-in-salesforce-lightning-datatable.html

Salesforce DML Exception Cannot have more than 10 chunks
5K views · Feb 27, 2023 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 multiple objects. Blog Post: https://www.infallibletechie.com/2023/02/salesforce-dml-exception-cannot-have-more-than-10-chunks-in-a-single-operation.html

Display Error Messages in the Salesforce Visualforce Page
34K views · Mar 3, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2012/10/how-to-display-error-messages-in.html

Auto Complete search using Salesforce Lightning Web Componen...
24K views · Mar 12, 2023 infallibletechie.com
Check the following implementation for Auto Complete Search using Salesforce Lightning Web Component. Blog Post: https://www.infallibletechie.com/2021/06/simple-auto-complete-search-using.html

Allow Row Actions on Row Selection in Salesforce LWC Data Ta...
20K views · Mar 23, 2023 infallibletechie.com
Row Actions can be allowed on Row Selection in Salesforce Lightning Web Component Lightning Data Table using Dynamic Row Actions. Blog Post: https://www.infallibletechie.com/2023/03/allow-row-actions-on-row-selection-in-salesforce-lwc-data-table.html

Create Salesforce Apex Class to create one object per transa...
3K views · Mar 31, 2023 infallibletechie.com
The Singleton pattern attempts to solve the issue of repeatedly using an object instance, but only allowing to instantiate it once within a single transaction context. So, using Singleton pattern , we can create Salesforce Apex Class to create one object per transaction. Blog Post: https://www.infallibletechie.com/2022/06/how-to-create-apex-class-such-that-you.html

Check Email Deliverability using Salesforce Apex
693K views · Apr 20, 2023 infallibletechie.com
Messaging.reserveSingleEmailCapacity will thrown an error: System.NoAccessException: The organization is not permitted to send email if the Email Deliverability is not set in Salesforce. So, using it we can check whether the Email Deliverability is enabled or disabled using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/04/check-email-deliverability-using-salesforce-apex.html

Salesforce Batch Class to Mass Delete Records from an Object
7K views · May 1, 2023 infallibletechie.com
Salesforce Batch Apex can be used to mass or bulk delete records from objects in batches which will avoid hitting DML Governor Limit. Blog Post: https://www.infallibletechie.com/2023/01/salesforce-batch-class-to-mass-delete-records-from-an-object.html

Find day of the week using Salesforce Apex
11K views · May 4, 2023 infallibletechie.com
formatGMT( 'EEEE' ) can be used to return the week using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2022/12/how-to-find-day-of-the-week-using-salesforce-apex.html

Convert String to Base64 using Salesforce Apex
52K views · May 8, 2023 infallibletechie.com
EncodingUtil.base64Decode() can be used to convert Base64 content to Blob value. Then, we can use toString() to convert the Blob value to String. Blog Post: https://www.infallibletechie.com/2022/11/how-to-convert-string-to-base64-using-salesforce-apex.html

Update AccountId on Salesforce User record
8K views · Jun 5, 2023 infallibletechie.com
AccountId field on the User object is read only. It is derived from Contact's AccountId field. We cannot update AccountId on the User object. The Contact record's AccountId field should be updated so that it will also gets reflected on the User object. Blog Post: https://www.infallibletechie.com/2023/05/update-accountid-on-salesforce-user-record.html

Invalid Markup Salesforce Exception
6K views · Jun 26, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/06/error-while-parsing-rich-text-content.html

Map data type in Salesforce
14K views · Jul 8, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2012/10/map-datat-type-in-salesforce.html

Create ContentNote and Link it to records in Salesforce
4K views · Jul 12, 2023 infallibletechie.com
ContentNote entity should be used to create Notes. ContentDocumentLink entity should be used to link it to the records. Blog Post: https://www.infallibletechie.com/2022/04/how-to-create-contentnote-and-link-it.html

Create multiple Queues and associate object using Salesforce...
946 views · Jul 14, 2023 infallibletechie.com
Group and QueueSObject entities can be used to insert or create multiple Queues and associate object using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/02/how-to-create-multiple-queues-and-associate-object-using-salesforce-apex.html

Async Apex Usage in Salesforce
2K views · Jul 23, 2023 infallibletechie.com
DailyAsyncApexExecutions Limit from System.OrgLimit can be used to check Async Apex Usage in Salesforce. Blog Post: https://www.infallibletechie.com/2023/06/how-to-check-async-apex-usage-in-salesforce.html

Iterate Map data type in Salesforce Lightning Web Component
3K views · Jul 24, 2023 infallibletechie.com
Convert the Map Data Type values returned from the Apex Class to an array to display it on the screen using the Lightning Web Component. Blog Post: https://www.infallibletechie.com/2023/02/how-to-iterate-map-data-type-in-salesforce-lightning-web-component.html

Data Storage and File Storage using Salesforce Apex
8K views · Jul 25, 2023 infallibletechie.com
We can find Data Storage and File Storage using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/07/how-to-find-data-storage-and-file-storage-using-salesforce-apex.html

Salesforce Apex to call OpenAI API with Prompt
3K views · Jul 27, 2023 infallibletechie.com
Using Salesforce Apex, we can call the OpenAI API with Prompt. Blog Post: https://www.infallibletechie.com/2023/06/salesforce-apex-to-call-openai-api-with-prompt.html

Convert List to Set in Salesforce
12K views · Aug 3, 2023 infallibletechie.com
To convert List to Set in Salesforce, add some values to List datatype and use addAll() to add it to Set datatype. Blog Post: https://www.infallibletechie.com/2012/07/convert-list-to-set-in-salesforce.html

STRING TOO LONG data value too large Exception in Salesforce
35K views · Aug 4, 2023 infallibletechie.com
STRING_TOO_LONG "data value too large" Exception in Salesforce occurs due to populating a field with more than its maximum length. Blog Post: https://www.infallibletechie.com/2022/06/stringtoolong-data-value-too-large.html

instanceof Keyword in Salesforce Apex
5K views · Aug 8, 2023 infallibletechie.com
Using Salesforce Apex, if you want to verify at run time or dynamically whether an object is actually an instance of a particular class, then we can make use of the instanceof keyword. The instanceof keyword in Salesforce Apex can only be used to verify if the target type in the expression on the right of the keyword is a viable alternative for the declared type of the expression on the left. Blog Post: https://www.infallibletechie.com/2015/05/using-instanceof-keyword-in-apex-in.html

Salesforce lightning datatable with header and footer
9K views · Aug 10, 2023 infallibletechie.com
lightning-card can be used for header and footer in Salesforce Lightning Web Component. Blog Post: https://www.infallibletechie.com/2023/07/salesforce-lightning-datatable-with-header-and-footer.html

Salesforce Lightning Web Component lightning input File Uplo...
9K views · Aug 11, 2023 infallibletechie.com
Using Salesforce Apex and FileReader() and encodeURIComponent() from JavaScript, we can easily upload a file using Lightning Web Component lightning:input of type file. Blog Post: https://www.infallibletechie.com/2023/08/salesforce-lightning-web-component-lightning-input-file-upload.html

Salesforce DML Exception while Emailing and Updating User
2K views · Aug 25, 2023 infallibletechie.com
The following exception is thrown when sending emails and updating the users using apex with setSaveAsActivity set as true while sending emails. Exception: MIXED_DML_OPERATION, DML operation on setup object is not permitted after you have updated a non-setup object (or vice versa): User, original object: EmailMessage: [] Blog Post: https://www.infallibletechie.com/2023/02/salesforce-dml-exception-while-emailing-and-updating-user.html

API Request Limit using Apex in Salesforce
806 views · Aug 28, 2023 infallibletechie.com
Using OrgLimit Class, we can check API Request Limit using Apex in Salesforce. DailyApiRequests in OrgLimit class holds the Salesforce 24 hours API Usage. Blog Post: https://www.infallibletechie.com/2019/12/how-to-check-api-request-limit-using.html

Download Selected Files using Salesforce Lightning Web Compo...
13K views · Sep 4, 2023 infallibletechie.com
In Salesforce, we can use Screen Action using Lightning Web Component to allow users to select the files to Download Selected Files. Blog Post: https://www.infallibletechie.com/2023/08/download-selected-files-using-salesforce-lightning-web-component.html

Salesforce Lightning Web Component notifyRecordUpdateAvailab...
19K views · Sep 5, 2023 infallibletechie.com
notifyRecordUpdateAvailable in Salesforce Lightning Web Component is used to notify the Lightning Data Service that the record data has modified/changed on the server so that the Lightning Data Service can take the appropriate actions to keep wire adapters updated with the latest record data. Blog Post: https://www.infallibletechie.com/2023/09/salesforce-lightning-web-component-notifyrecordupdateavailable.html

Salesforce Lightning Web Component Quick Action for Work Ord...
1K views · Sep 8, 2023 infallibletechie.com
We can make use of Salesforce Lightning Aura Component to display Lightning Web Component for Quick Action on the Work Order Object/Entity. Embed the Lightning Web Component on the Lightning Aura Component that is used for the Quick Action. Blog Post: https://www.infallibletechie.com/2023/09/salesforce-lightning-web-component-quick-action-for-work-order-object.html

Download Selected Files using Salesforce Lightning Aura Comp...
36K views · Sep 11, 2023 infallibletechie.com
In Salesforce, we can use Quick Action using Lightning Aura Component to allow users to select the files and download the selected Files. Blog Post: https://www.infallibletechie.com/2023/09/download-selected-files-using-salesforce-lightning-aura-component.html

Find text between tags in Salesforce using Apex
1K views · Sep 15, 2023 infallibletechie.com
RegEx can be used to find text between tags in Salesforce using Apex. Blog Post: https://www.infallibletechie.com/2020/05/how-to-find-text-between-tags-in.html

Encode the URL special characters using Salesforce Apex
13K views · Sep 17, 2023 infallibletechie.com
EncodingUtil.urlEncode() encodes the special characters for correct URL String. Blog Post: https://www.infallibletechie.com/2016/10/how-to-encode-special-characters-for.html

Time delay in Case creation from Salesforce Email To Case
983 views · Sep 19, 2023 infallibletechie.com
Time difference between Case Creation Date and Email Message MessageDate can be used to find time delay in Case creation from Salesforce Email-To-Case. Blog Post: https://www.infallibletechie.com/2022/11/how-to-find-time-delay-in-case-creation-from-salesforce-email-to-case.html

Salesforce Query for Phone format
21K views · Oct 2, 2023 infallibletechie.com
Don't use SOQL to find or query records using phone numbers. Instead, use SOSL. Blog Post: https://www.infallibletechie.com/2019/12/salesforce-soql-for-phone-format.html

You have uncommitted work pending Salesforce Exception
5K views · Oct 9, 2023 infallibletechie.com
Exception: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out Callouts are not allowed when there is an uncommitted transaction pending. For example, if a save point is set before a DML operation, a callout cannot be made based on the results of that operation to commit or roll back the save point. You cannot perform a DML operation prior to a callout. All the DML operations should be invoked only after you are done with callouts. So, make a webservice callout first and then save the request. Blog Post: https://www.infallibletechie.com/2023/03/you-have-uncommitted-work-pending-salesforce-exception.html

ChatGPT using Salesforce Apex and display in Lightning Web C...
4K views · Oct 10, 2023 infallibletechie.com
We can use Salesforce Apex to make callout to OpenAI. Apex makes the callout more secured instead of doing the Callout from the Lightning Web Component JavaScript. We can display the response from the ChatGPT using the Lightning Web Component. Blog Post: https://www.infallibletechie.com/2023/06/how-to-call-chatgpt-using-salesforce-apex-and-display-in-lightning-web-component.html

Disable and Enable button in Lightning Aura Component datata...
24K views · Oct 18, 2023 infallibletechie.com
disabled attribute on the button type in the lightning:datatable can be used to Disable and Enable button. Blog Post: https://www.infallibletechie.com/2018/07/how-to-disable-and-enable-button-in.html

Fixed Header in Salesforce Lightning Web Component Datatable
816 views · Oct 20, 2023 infallibletechie.com
To have fixed Header in Salesforce Lightning Web Component Lightning Datatable, set a height to the lightning datatable using a div tag. Blog Post: https://www.infallibletechie.com/2023/10/fixed-header-in-salesforce-lightning-web-component-datatable.html

Track Successful and Failure Salesforce Platform Events
17K views · Oct 26, 2023 infallibletechie.com
EventBus.EventPublishSuccessCallback and EventBus.EventPublishFailureCallback interfaces can be used in an Apex Class to track Successful and Failure Salesforce Platform Events. Blog Post: https://www.infallibletechie.com/2023/10/how-to-track-successful-and-failure-salesforce-platform-events.html

Attach a Salesforce Visualforce as PDF to an outgoing email
4K views · Oct 28, 2023 infallibletechie.com
Queueable interface can be used to attach a Salesforce Visualforce as PDF to an outgoing email from trigger. Blog Post: https://www.infallibletechie.com/2023/03/how-to-attach-a-salesforce-visualforce-as-pdf-to-an-outgoing-email.html

Get Apex Class Access for a profile using Apex in Salesforce
8K views · Nov 3, 2023 infallibletechie.com
Apex Classes assignment to a Profile are stored in SetupEntityAccess entity/object. So, by filtering ParentId with the Profile's Permission Set Id and SetupEntityType = 'ApexClass', we can fetch the Apex Classes that are assigned to a Profile using Apex in Salesforce. Blog Post: https://www.infallibletechie.com/2023/03/how-to-get-apex-class-access-for-a-profile-using-apex-in-salesforce.html

Maintain variable value inside the Salesforce Batch Apex cla...
7K views · Nov 12, 2023 infallibletechie.com
To maintain variable value inside the Salesforce Batch class, Database.Stateful can be used. Blog Post: https://www.infallibletechie.com/2014/06/how-to-maintain-variable-value-inside.html

Advanced Encryption Standard AES using Salesforce Apex
5K views · Nov 9, 2023 infallibletechie.com
We can use Crypto.encryptWithManagedIV() and Crypto.decryptWithManagedIV() with at least 16 bytes key for Advanced Encryption Standard(AES) using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/08/advanced-encryption-standardaes-using-salesforce-apex.html

Fetch and display Custom Metadata Type Records in Salesforce...
2K views · Nov 14, 2023 infallibletechie.com
Using Apex, we can query the Custom Meta Type records. Using wire framework, we can call the apex class and method from Lightning Web Component and display it using lightning-datatable. Blog Post: https://www.infallibletechie.com/2021/03/how-to-fetch-and-display-custom.html

hour and hourGMT in Salesforce Apex
10K views · Nov 20, 2023 infallibletechie.com
hour() method returns hour in the running user context. hourGMT() returns the GMT hour value. Blog Post: https://www.infallibletechie.com/2023/09/hour-and-hourgmt-in-salesforce-apex.html

Assign Assignment Rule to Case record using Apex in Salesfor...
7K views · Nov 25, 2023 infallibletechie.com
assignmentRuleHeader.useDefaultRule in Database.DMLOptions can be used to assign or invoke or trigger Assignment Rule to Case record using Apex in Salesforce. Blog Post: https://www.infallibletechie.com/2014/03/how-assign-assignment-rule-to-case.html

Create External Object record synchronously using Apex
461 views · Nov 29, 2023 infallibletechie.com
Database.insertImmediate() method can be used to create External Object record synchronously using Apex. Blog Post: https://www.infallibletechie.com/2022/12/how-to-create-external-object-record-synchronously-using-apex.html

How to use certificate when making Salesforce Apex Callouts?
483 views · Dec 1, 2023 infallibletechie.com
setClientCertificateName() can be used to assign certificate when making Salesforce Apex Callouts. Blog Post: https://www.infallibletechie.com/2023/10/how-to-use-certificate-when-making-salesforce-apex-callouts.html

Create VoiceCall record using Salesforce Apex
9K views · Dec 8, 2023 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2023/10/create-voicecall-record-using-salesforce-apex.html

Load Data from Static Resource in Salesforce Test Class
3K views · Dec 19, 2023 infallibletechie.com
Test.load() can be used to load Data from Static Resource in Salesforce Test Class. The Static Resource should contain a csv file. Blog Post: https://www.infallibletechie.com/2023/12/load-data-from-static-resource-in-salesforce-test-class.html

Remove last character from a String using Salesforce Apex
4K views · Jan 29, 2024 infallibletechie.com
removeEnd() can be used to remove the last character from a String in Salesforce Apex. Blog Post: https://www.infallibletechie.com/2014/03/how-to-remove-last-character-from.html

force navigateToURL example in Salesforce Lightning
791 views · Jan 26, 2024 infallibletechie.com
force:navigateToURL can be used for Navigation in Salesforce Lightning. Blog Post: https://www.infallibletechie.com/2018/02/forcenavigatetourl-example-in.html

Find Salesforce Guest User Profiles Object Access
3K views · Feb 1, 2024 infallibletechie.com
ObjectPermissions object/entity should be queried for Profile of UserType Guest to find Salesforce Guest User Profiles Object Access. Blog Post: https://www.infallibletechie.com/2024/02/find-salesforce-guest-user-profiles-object-access.html

Archive Salesforce Records to Big Object
840 views · Feb 2, 2024 infallibletechie.com
Using Salesforce Big Object and Batch Apex, we can archive the records regularly. Blog Post: https://www.infallibletechie.com/2023/10/archive-salesforce-records-to-big-object.html

Get Object Name from Id value in Salesforce
2K views · Feb 8, 2024 infallibletechie.com
getSobjectType() can be used to get Object Name from the Id value using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2016/06/how-to-get-object-name-from-id-value-in.html

Generate unique identifier UUID using Salesforce Apex
3K views · Feb 24, 2024 infallibletechie.com
To generate unique identifier (UUID) using Salesforce Apex, randomUUID() from UUID class can be used. Blog Post: https://www.infallibletechie.com/2024/02/how-to-generate-unique-identifier-uuid-using-salesforce-apex.html

Safe Navigation Operator in Salesforce Apex
418 views · Feb 26, 2024 infallibletechie.com
? in Salesforce Apex used for Safe Navigation Operator. The safe navigation operator (?.) can be used for checking null references. Blog Post: https://www.infallibletechie.com/2023/04/safe-navigation-operator-in-salesforce-apex.html

Clone EmailMessage record using Apex in Salesforce
728 views · Mar 2, 2024 infallibletechie.com
clone() in Apex can be used to clone EmailMessage record using Apex in Salesforce. Blog Post: https://www.infallibletechie.com/2020/10/how-to-clone-emailmessage-record-using.html

Upload a File to a specific Library Folder using Salesforce ...
1K views · Mar 8, 2024 infallibletechie.com
ContentDocumentLink record should be created with LinkedEntityId as the Library Id to upload a File to a specific Library Folder using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2023/11/upload-a-file-to-a-specific-library-folder-using-salesforce-apex.html

Salesforce Apex Database setSavepoint
561 views · Mar 15, 2024 infallibletechie.com
Database.setSavepoint() in Salesforce apex can be used to rollback the transaction to a point. It helps in partial rollback on the transactions. Blog Post: https://www.infallibletechie.com/2013/02/what-is-databasesavepoint-in-salesforce.html

Salesforce Trigger on File Delete
348 views · Mar 17, 2024 infallibletechie.com
When a file is deleted in Salesforce, trigger on ContentDocument object/entity fires. But, the trigger on ContentDocumenLink object/entity will not fire. Blog Post: https://www.infallibletechie.com/2024/02/salesforce-trigger-on-file-delete.html

Salesforce Apex Execution Quiddity value
136 views · Apr 3, 2024 infallibletechie.com
In Salesforce Apex, getQuiddity() returns the Quiddity value of the current Request object. Blog Post: https://www.infallibletechie.com/2024/04/salesforce-apex-execution-quiddity-value.html

Find all Unique property enabled fields within an object in ...
892 views · Apr 10, 2024 infallibletechie.com
Using Schema.getGlobalDescribe() and Schema.SObjectField, we can find all the Unique property enabled fields within an object in Salesforce. Blog Post: https://www.infallibletechie.com/2021/11/how-to-find-all-unique-fields-within.html

You can't create a contact for this user Salesforce Exce...
3K views · Apr 11, 2024 infallibletechie.com
Exception: You can't create a contact for this user because the org doesn't have the necessary permissions. Contact Salesforce Customer Support for help. Blog Post: https://www.infallibletechie.com/2023/03/you-cant-create-a-contact-for-this-user-salesforce-exception.html

Prevent Chatter Posts on Salesforce Case Comments
232 views · Apr 12, 2024 infallibletechie.com
To prevent Chatter Posts on Salesforce Case Comments, we can develop a trigger on FeedComment object or entity. Blog Post: https://www.infallibletechie.com/2023/11/how-to-prevent-chatter-posts-on-salesforce-case-comments.html

upsert using External Id using Salesforce Apex
3K views · Apr 26, 2024 infallibletechie.com
Upsert uses the sObject record's primary key (the ID), an idLookup field, or an external ID field to determine whether it should create a new record or update an existing one. Blog Post: https://www.infallibletechie.com/2015/10/how-to-upsert-using-external-id-using.html

Salesforce Content Document Link when Service Report is gene...
544 views · May 1, 2024 infallibletechie.com
If you want to query Salesforce Content Document Link(ContentDocumentLink) records to which they are attached when the Service Report is generated, we have to use the ParentId on the Service Report Object/Entity. Blog Post: https://www.infallibletechie.com/2024/02/salesforce-content-document-link-when-service-report-is-generated.html

Find Object Key Prefix using Name in Salesforce Apex
1K views · May 23, 2024 infallibletechie.com
To find Object Key Prefix using Name in Salesforce Apex, we can use getKeyPrefix() method from DescribeSObjectResult class. Blog Post: https://www.infallibletechie.com/2023/12/find-object-key-prefix-using-name-in-salesforce-apex.html

Create JSON String using Apex in Salesforce
14K views · May 27, 2024 infallibletechie.com
JSON.serialize() method can be used to create JSON String using Apex in Salesforce. Blog Post: https://www.infallibletechie.com/2014/11/how-to-create-json-string-using-apex-in.html

Update Custom Settings value using Apex in Salesforce
608 views · May 30, 2024 infallibletechie.com
We can query or we can use getInstance() to get the value and then we can use update DML Operation to update the Custom Settings value. Blog Post: https://www.infallibletechie.com/2015/08/how-to-update-custom-settings-value.html

Get current month using apex in Salesforce
3K views · Jun 3, 2024 infallibletechie.com
Month() method can be used to get current month using apex in Salesforce. Also, format( 'MMMM' ) can be used to return the month in String since the Month() method returns integer. Blog Post: https://www.infallibletechie.com/2013/09/how-to-get-current-month-using-apex-in.html

Check the relationship type Master Detail or Lookup using Sa...
4K views · Jun 3, 2024 infallibletechie.com
getRelationshipOrder() method from the DescribeFieldResult class can be used to check the relationship type(Master-Detail or Lookup) using Salesforce Apex. Blog Post: https://www.infallibletechie.com/2024/01/how-to-check-the-relationship-typemaster-detail-or-lookup-using-salesforce-apex.html

Generate JSON String from Salesforce Records Update
15K views · Jun 10, 2024 infallibletechie.com
JSON.serialize() method can be used to generate JSON String from Salesforce Records Update. Blog Post: https://www.infallibletechie.com/2024/01/generate-json-string-from-salesforce-records-update.html

Handle Salesforce SOQL Offset Limitation
164 views · Jun 13, 2024 infallibletechie.com
In Salesforce SOQL, we cannot set the Offset value more than 2000. In order to overcome the Offset limitation, we can avoid using it and order the records based on the Id using ORDER BY Clause in the SOQL and retrieve them by filtering in subsequent requests. Blog Post: https://www.infallibletechie.com/2024/06/handle-salesforce-soql-offset-limitation.html

Handle multiple HTTP Methods in the same Salesforce REST Ape...
576 views · Jun 13, 2024 infallibletechie.com
Use * in the urlMapping so that we can make use of different paths to handle multiple HTTP Methods in the same Salesforce REST Apex class. Blog Post: https://www.infallibletechie.com/2024/06/how-to-handle-multiple-http-methods-in-the-same-salesforce-rest-apex-class.html

Get Standard Price Book Id in Salesforce Test Class
3K views · Jun 15, 2024 infallibletechie.com
Test.getStandardPricebookId() is used to get or fetch Standard Price Book Id in the Apex test class. Blog Post: https://www.infallibletechie.com/2016/09/how-to-get-standard-price-book-id-in.html

HTTP Status Code for Salesforce Apex REST API
335 views · Jun 18, 2024 infallibletechie.com
RestContext.response.statusCode can be used to set HTTP Status Code for Salesforce Apex REST API. Blog Post: https://www.infallibletechie.com/2024/06/how-to-set-http-status-code-for-salesforce-apex-rest-api.html

Salesforce Flow Transform Element Apex Defined
151 views · Jun 21, 2024 infallibletechie.com
Salesforce Flow Transform Element with Apex-Defined stores the mapped data from the source data in Apex-Defined format. Blog Post: https://www.infallibletechie.com/2024/06/salesforce-flow-transform-element-apex-defined.html

Salesforce Organization Id using Apex
3K views · Jun 29, 2024 infallibletechie.com
UserInfo.getOrganizationId() can be used to fetch the Salesforce organization id using Apex. Blog Post: https://www.infallibletechie.com/2015/01/how-to-get-salesforce-organization-id.html

Download Salesforce Visualforce Page in Excel Format
1K views · Jul 2, 2024 infallibletechie.com
updateRecord from the 'lightning/uiRecordApi' library can be used to update records without using Apex in Salesforce Lightning Web Component. Blog Post: https://www.infallibletechie.com/2024/06/update-record-in-salesforce-lightning-web-component-without-apex.html

Find number of days between two dates using Apex
4K views · Jul 7, 2024 infallibletechie.com
The daysBetween() method can be used to find number of days between two dates. Blog Post: https://www.infallibletechie.com/2012/07/how-to-find-number-of-days-between-two-2.html

Insert Salesforce Knowledge Article Data Categories Assignme...
450 views · Jul 5, 2024 infallibletechie.com
To insert Salesforce Knowledge Article Data Categories Assignment using Apex, we have to make use of knowledge__DataCategorySelection object/entity. Blog Post: https://www.infallibletechie.com/2024/03/insert-salesforce-knowledge-article-data-categories-assignment-using-apex.html

Handle Request Body in Salesforce REST Apex class
416 views · Jul 15, 2024 infallibletechie.com
RestContext.request.requestBody contains the Request Body in Salesforce REST API Apex Class. So, we can get the RestContext.request.requestBody to handle Request Body in Salesforce REST API Apex class. Blog Post: https://www.infallibletechie.com/2024/07/how-to-handle-request-body-in-salesforce-rest-apex-class.html

Create Files using Salesforce Apex
2K views · Aug 21, 2024 infallibletechie.com
Use ContentVersion entity to create files using Salesforce apex. Use ContentDocumentLink entity to link the created the file to a record in Salesforce. Blog Post: https://www.infallibletechie.com/2022/11/how-to-create-files-using-salesforce-apex.html

Mobile Number validation using Apex in Salesforce
29K views · Aug 28, 2024 infallibletechie.com
Using Pattern.matches() and RegEx, we can validate Phone Number or Mobile Number using Apex in Salesforce. In the following example, I have made sure the Account Phone number field contains only 10 digit number. Blog Post: https://www.infallibletechie.com/2015/09/mobile-number-validation-using-apex-in.html

Create PriceBookEntry record using Salesforce REST API
2K views · Sep 4, 2024 infallibletechie.com
We can insert PriceBookEntry record using Salesforce REST API. Blog Post: https://www.infallibletechie.com/2023/02/how-to-create-pricebookentry-record-using-salesforce-rest-api.html

Parse Array in Salesforce Apex REST API
546 views · Sep 9, 2024 infallibletechie.com
JSON.deserialize() can be used in Salesforce Apex to parse Array payload in Apex REST API. Blog Post: https://www.infallibletechie.com/2024/09/parse-array-in-salesforce-apex-rest-api.html

Import records using Salesforce Lightning Web Component
3K views · Oct 10, 2024 infallibletechie.com
To import/load/upload records using Salesforce Lightning Web Component, lightning-file-upload tag can be used to allow users to upload the file and Apex can be use to insert the records. Blog Post: https://www.infallibletechie.com/2024/10/import-records-using-salesforce-lightning-web-component.html

Conditional selection in Salesforce Lightning Web Component ...
240 views · Nov 5, 2024 infallibletechie.com
We cannot hide and show the check box in the lightning-datable for the rows. So, for conditional selection, we can validate the selected rows and throw an error if the selected row is not intended to be selected. Using this approach, we can users avoid selecting specific rows in the Salesforce Lightning Web Component lightning-datatable. Blog Post: https://www.infallibletechie.com/2024/11/conditional-selection-in-salesforce-lightning-web-component-datatable.html

Trigger Assignment Rule when a Lead is created using Apex
941 views · Nov 6, 2024 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2014/03/how-assign-assignment-rule-to-lead.html

Getting child objects of parent object in Salesforce
2K views · Nov 27, 2024 infallibletechie.com
getChildRelationships() can be used to retrieve all the related or child objects of an object in Salesforce Apex. Blog Post: https://www.infallibletechie.com/2012/04/getting-child-objects-of-master-object.html

Getting child objects of parent object in Salesforce
2K views · Nov 27, 2024 infallibletechie.com
getChildRelationships() can be used to retrieve all the related or child objects of an object in Salesforce Apex. Blog Post: https://www.infallibletechie.com/2012/04/getting-child-objects-of-master-object.html

Find all custom fields in an Salesforce Object
2K views · Dec 11, 2024 infallibletechie.com
isCustom() method from Schema.DescribeFieldResult can be used to find whether the field custom or standard in Salesforce using Apex. Blog Post: https://www.infallibletechie.com/2023/09/how-to-find-all-custom-fields-in-an-salesforce-object.html

Find all custom fields in an Salesforce Object
2K views · Dec 11, 2024 infallibletechie.com
isCustom() method from Schema.DescribeFieldResult can be used to find whether the field custom or standard in Salesforce using Apex. Blog Post: https://www.infallibletechie.com/2023/09/how-to-find-all-custom-fields-in-an-salesforce-object.html

Invoke Salesforce Prompt Template using Apex
209 views · Jan 23, 2025 infallibletechie.com
Salesforce Connect API can be used to invoke Prompt Template using Apex. Blog Post: https://www.infallibletechie.com/2025/01/invoke-salesforce-prompt-template-using-apex.html

Invoke Salesforce Prompt Template using Apex
209 views · Jan 23, 2025 infallibletechie.com
Salesforce Connect API can be used to invoke Prompt Template using Apex. Blog Post: https://www.infallibletechie.com/2025/01/invoke-salesforce-prompt-template-using-apex.html

Invoke Salesforce Agentforce from Apex
3K views · Feb 7, 2025 infallibletechie.com
Invocable.Action.createCustomAction( 'generateAiAgentResponse', 'Agentforce Agent API Name' ) can be used to invoke Salesforce Agentforce Agent from Apex. Blog Post: https://www.infallibletechie.com/2025/02/invoke-salesforce-agentforce-from-apex.html

Invoke Salesforce Agentforce from Apex
3K views · Feb 7, 2025 infallibletechie.com
Invocable.Action.createCustomAction( 'generateAiAgentResponse', 'Agentforce Agent API Name' ) can be used to invoke Salesforce Agentforce Agent from Apex. Blog Post: https://www.infallibletechie.com/2025/02/invoke-salesforce-agentforce-from-apex.html

Salesforce Custom Agent Actions using Apex REST
3K views · Mar 17, 2025 infallibletechie.com
We can create custom Agentforce Agent actions using the Apex Rest Resource apex classes. This helps in reusing the existing Apex Development for the Agentforce Agent implementation. Blog Post: https://www.infallibletechie.com/2025/03/salesforce-custom-agent-actions-using-apex-rest.html

Retrieve the Record Type which are accessible by user's ...
2K views · Mar 21, 2025 infallibletechie.com
isAvailable() from RecordTypeInfo object/entity can be used to retrieve the Record Type which are accessible by user's Profile only. Blog Post: https://www.infallibletechie.com/2017/05/how-to-retrieve-record-type-which-are.html

Invoke Google Vertex AI Agent from Salesforce Lightning Web ...
194 views · Mar 24, 2025 infallibletechie.com
Invoke Google Vertex AI Agent from Salesforce Lightning Web Component In this Blog Post, I have used Salesforce Lightning Web Component to invoke the Google Vertex AI Agent. Blog Post: https://www.infallibletechie.com/2025/03/invoke-google-vertex-ai-agent-from-salesforce-lightning-web-component.html

Find whether an object supports trigger in Salesforce
1K views · Apr 10, 2025 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2022/06/how-to-find-whether-object-supports.html

Salesforce Agentforce to Agent transfer Business Hours Check
8K views · Apr 10, 2025 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2025/04/salesforce-agentforce-to-agent-transfer-business-hours-check.html

DML check in Salesforce Apex
20K views · Apr 16, 2025 infallibletechie.com
Blog Post: https://www.infallibletechie.com/2023/11/dml-check-in-salesforce-apex.html