The Apex code illustrates how to generate XML containing Account information and its related Contacts. It includes the Account details in the root tag and adds the Contacts within a
Tag: Apex
The article explains converting the current DateTime to a specific time zone using Apex code and then converts it to a string without altering it to the user’s local time zone. The string DateTime is then parsed into separate variables to extract the date and time components.
This article demonstrates automatically refreshing dashboards using apex scheduled job that you can plan to run at specific times.
It uses a custom setting to store the dashboard Ids then a scheduled job to get all dashboard Ids from the custom setting and refresh the dashboard at specific time or multiple times a day.
This article walk you through using the Slack API within Salesforce Apex. This contains an example of unarchiving the Slack channel using API: https://api.slack.com/methods/conversations.unarchive
This article has two apex invocable actions that can be invoked from the flow and other apex classes.
This class can be used in flows to send emails programmatically without needing predefined email alerts.
It allows customization of email content, recipients, and attachments on the fly. The Apex class is designed to send emails from Salesforce without the need for an Email Alert.
This article shows, how to preview an email in a screen flow with actual merge fields populated before sending it out to a customer, ensuring all details are correct. By using an Apex invocable action that returns email body with all the merge fields populated and in the screen flow show text using display text component and HTML body using an LWC.
This article provides step-by-step instructions to help you set up an automation using Change Data Capture, Flow and Apex trigger to update the lead Owner, when a lead is assigned to a Specific cadence. The apex trigger listens for new events on the ActionCadenceTrackerChangeEvent object, and when a Lead is targeted by a specific cadence (‘my test cadence’), it triggers a Flow to update the lead owner with the cadence assignee.
This article walk you through creating an Apex class which is used to send a summary of open tasks to each active standard user in Salesforce, helping them stay informed about their pending tasks. The email is sent from a specified org-wide email address, and the tasks are listed in a table format within the email.
An example of LWC to display CMS Content (Collection) as an accordion on a public Lightning Web Runtime (LWR) site, leveraging the ConnectAPI.ManagedContentDelivery class. In this example, I use the getCollectionItemsForChannel method from the ConnectAPI.ManagedContentDelivery class to retrieve CMS Collection items and display them as an accordion.
The following article demonstrates exposing the apex class as a REST web service for creating a lead record in Salesforce. It is designed to handle HTTP POST requests containing lead data in JSON format.
This article walks you through to process apex trigger records in less than 200 records per transaction using queueable chaining apex job to avoid Salesforce limitations.
Consider a situation where you are bulk inserting records into a custom object or standard object, and you have an Apex trigger that is fired by this custom object. This trigger contains complex business logic, and you’re running into Salesforce limitations due to processing the default batch size of 200 records in a single transaction.
An apex function to split the last name into first name and last name using Salesforce apex.
Integration between Salesforce and Stripe. Sample code to create an charge object in stripe using apex code. The apex code can be invoked from the flow.
Find the number of days between two dates excluding weekends and holidays using apex
Create weekly, bi-weekly, monthly, quarterly, yearly and bi-yearly recurring tasks using apex.
Round Robin Assignment for any user lookup field using custom object and apex code.
Send the most recent Quote PDF attached to the email alert using Salesforce Flow