Error “Guest users are not permitted to perform this operation” while creating chatter post in flow

PROBLEM DEFINITION This error takes place when flow runs in the context of a Guest User – like Record is being created from public site or public webhook etc. SOLUTION This happens because Guest User is not allowed to create chatter post i.e. Feed Post. There are possible below approaches: 1) Using Platform Event : Guest user …

Error “Guest users are not permitted to perform this operation” while creating chatter post in flow Read More »

Associate Actions With Asynchronous Apex Jobs Using Transaction Finalizers (Beta) – Spring 21

Let’s explore Finalizers in Queueable Apex by considering a scenario. Let me present a scenario and elucidate how we handle such situations prior to Spring 21. In Queueable Apex, when attempting a callout to an external platform, an interruption in the network might result in a callout failure. How do we ensure that the callout …

Associate Actions With Asynchronous Apex Jobs Using Transaction Finalizers (Beta) – Spring 21 Read More »

Export Functions And Variables From A Lightning Web Component

When you create a Lightning Web Component, it comes with some default code. Our Lightning Web Component extends ‘LightningElement,’ allowing us to leverage various functions and variables seamlessly without additional configuration. However, what if I desire a more streamlined Lightning Web Component with only specific variables and functions? Suppose I intend to use this LWC …

Export Functions And Variables From A Lightning Web Component Read More »

Salesforce Communities: Enable Partners To Remove

Salesforce introduces Communities, addressing the much-needed improvement in the outdated partner portal user interface. Having participated in the pre-release, I discovered both positive and negative aspects of the new functionality. One significant drawback is the absence of the ability for Community Users to delete records. While Salesforce.com presented a comprehensive list of reasons justifying the …

Salesforce Communities: Enable Partners To Remove Read More »

Avoid Generating A New Opportunity When Converting A Lead Through Apex And Visualforce

My client has a scenario where they wish to convert a lead without automatically generating an opportunity during the conversion process. While the standard Lead conversion page is acceptable to business owners, they specifically desire the “Do not create a new opportunity upon conversion” checkbox to be pre-selected when users access the page within their …

Avoid Generating A New Opportunity When Converting A Lead Through Apex And Visualforce Read More »

Utilize The @wire Decorator In Lightning Web Components LWC To Connect An Apex Method To A Function.

Explore the process of wiring an Apex method to a function using the @wire decorator in Lightning Web Components (LWC). This is the optimal choice for utilizing the @wire decorator. The reason behind this preference is that, with this approach, we have the ability to easily debug the data retrieved from the Apex method. Although …

Utilize The @wire Decorator In Lightning Web Components LWC To Connect An Apex Method To A Function. Read More »

Implementing Roll Up Summary Functionality For Objects Related Via Lookup Using Triggers

The requirement is to create a field on the Account object that displays the count of associated contact records for that specific Account, essentially implementing Roll-Up Summary functionality between Account and Contact. This scenario is often encountered in interviews, and let’s break down the key points: This setup ensures efficient handling of the specified requirements, …

Implementing Roll Up Summary Functionality For Objects Related Via Lookup Using Triggers Read More »