Quantcast
Channel: Salesforce Online Training
Browsing all 84 articles
Browse latest View live

Why is my Queueable job failing to call a batch process?

Question Why Am I Getting “Method Does Not Exist or Incorrect Signature” When a Queueable Job Calls a Batch Process? I am encountering the error: Method does not exist or incorrect signature: void...

View Article


How to Handle Quotes in Managed Packages?

Question When developing a managed package that includes features relying on Salesforce objects like Quotes, you might encounter issues in orgs where those objects are not enabled. For example,...

View Article


Image may be NSFW.
Clik here to view.

How Do “With” and “Without Sharing” Work in Apex?

Question: I’m trying to solidify my understanding of the “With Sharing,” “Without Sharing,” and unspecified sharing rules in Salesforce Apex. Below is my current understanding, followed by some...

View Article

How to Block Recursion in Triggers?

Question: How can recursion be effectively blocked in generic trigger handlers that handle all TriggerOperation types for arbitrary SObject types? Specifically, what are robust strategies to block...

View Article

How to Enable “Edit as Draft” for Articles?

Question: How to Enable “Edit as Draft” for Articles in Salesforce Experience Cloud? I need assistance enabling the “Edit as Draft” functionality for Salesforce Experience Cloud users. Despite...

View Article


How to Email Salesforce Reports as Excel?

Question How to Send Scheduled Reports as Excel Attachments Instead of Embedding Them in Emails in Salesforce? Salesforce scheduled reports embed the report content directly in the email, which makes...

View Article

How to Fix “Maximum Stack Depth” Error?

Question The “Maximum stack depth has been reached” error often occurs in Salesforce when there is an excessive chain of asynchronous operations, such as Queueable or Future calls, leading to a...

View Article

How to Automate Contact Deletion in Marketing Cloud?

Question With the GDPR laws in place, it is important to ensure that contacts can be removed from Marketing Cloud. I am currently trying to automate the process of contact deletion using existing...

View Article


How to Handle Bulk REST API Callouts?

Question What is the best approach to manage existing REST API callouts in Salesforce when processing bulk records, particularly if the external system lacks support for bulk operations? Answer...

View Article


Why Does AppSwitcher Deployment Fail in Production?

Question I’m attempting to deploy a bundle to Production from my final staging environment, which is a partial sandbox. The deployment works fine in the partial sandbox but fails in Production with...

View Article

Add Dynamic CC in Salesforce Flow?

Question How can I dynamically add a CC recipient address list in Salesforce Flow? Answer To dynamically add CC recipients in Salesforce Flow while sending emails, you can use a combination of Email...

View Article

How to Fix MyIterable Constructor Error?

Question “The constructor MyIterable should accept parameter of type List<String>.” I am unable to complete the “Get Hands-On with an Iterable Variable in For Loops” Trailhead module because I...

View Article

What Is a GACK in Salesforce Error Logs?

Question I’ve been working with Salesforce Support to address an internal server error linked to a GACK code (2134764861-123797 (1611479512)). After weeks of back-and-forth, I was informed that...

View Article


How to Add CC Recipients Dynamically?

Question In Salesforce Flow, adding CC recipients dynamically can be achieved using email alerts and flow configurations. Here’s how you can implement this: How Can We Dynamically Add Recipients to an...

View Article

How to Call Salesforce REST API in Lightning?

Question When trying to call Salesforce REST API endpoints, such as /services/data/v32.0/analytics/reports, from a Lightning Component, you may encounter issues with Content Security Policy (CSP)....

View Article


Why is instanceof inconsistent in Apex collections?

Question In Apex, the following behavior seems inconsistent: Map<String, String> m = new Map<String, String>(); m instanceof Map<String, Object> evaluates to true. However, m...

View Article

Enable Email Button in Task Object?

Question: I am trying to enable the Email action button within the Task object, similar to the functionality available in the Activity Timeline. However, I am unable to add the Activity Timeline,...

View Article


Launch Custom Action from LWC?

Question: I have a Lightning Web Component (LWC) on a Lightning page for a standard object, and I want to add a button within the LWC that triggers a custom action for that object. The custom action...

View Article

Why Does Query Timeout in Automation Studio?

Question Timeout Error in Automation Studio but Not in Query Studio I’m encountering an issue where a query runs successfully in Query Studio within a minute but times out in Automation Studio....

View Article

Image may be NSFW.
Clik here to view.

What Are _PushAddress and _PushTag Attributes?

Question What Are _PushAddress and _PushTag Attributes? Answer The _PushAddress and _PushTag Data Views in Salesforce Marketing Cloud store information about device-specific push notification details...

View Article
Browsing all 84 articles
Browse latest View live