Facilitating Communication Across Salesforce UI Technologies with Lightning Message Service

There are lot of issue in communication between Visual Force Pages, Lightning Component and Lightening Web Component.  We used to use Window object to communicate between these pages. Salesforce has introduce Lightning Message Service API in Winter’20 to communicate across the DOM, between Aura components, Visualforce pages, and Lightning web components. If application switching from Salesforce Classic to Lightning …

Facilitating Communication Across Salesforce UI Technologies with Lightning Message Service Read More »

How to Upload Multiple Files Using a Lightning Web Component in Salesforce

The Lightning File Upload component offers a seamless and integrated solution for users to easily upload multiple files. It incorporates drag-and-drop functionality and file type filtering. This component is designed with the Lightning Design System file selector styling. Uploaded files are always linked to a specific record, making the record-id attribute mandatory. Users can access …

How to Upload Multiple Files Using a Lightning Web Component in Salesforce Read More »

Insert Records from .csv in Attachment with dynamic fields

Our 3rd party application possesses a functionality to archive records by replacing the original entry with an Attachment containing a .csv file that includes all fields along with their respective values for a maximum of 150 records. Regrettably, the application lacks a feature to restore records from the archive. To address this limitation, I am …

Insert Records from .csv in Attachment with dynamic fields Read More »

Managing Picklists in Apex and Lightning Web Components

Picklists serve as a valuable tool for tailoring Salesforce objects, offering a reusable and administrator-friendly solution complete with built-in validation. Nevertheless, programmatically accessing picklist values can be challenging, and it’s crucial to grasp the diverse methods and potential challenges. This article will explore various approaches for retrieving picklist values in both Apex and Lightning Web …

Managing Picklists in Apex and Lightning Web Components Read More »

An Overview of Apex REST

You can make your Apex class and its methods accessible to external applications via the REST architecture. To achieve this, you need to annotate your Apex class with @RestResource, making it available as a REST resource. Additionally, you can annotate your methods to expose them through REST. For instance, you can use the @HttpGet annotation …

An Overview of Apex REST Read More »

Retrieve the geographical coordinates of an address.

The Geocode() Apex method accepts a single address and provides the geographic coordinates along with the formatted address. If you need to obtain the geographical coordinates for multiple addresses, you should employ the BatchGeocode() Apex method. Function Signature Where, Example Code This code fetches the geographic coordinates of the Salesforce headquarters. The output also provides …

Retrieve the geographical coordinates of an address. Read More »

Retrieve data hosted by Salesforce.

The GetHostedData() Apex method retrieves geographical IDs for properties and displays them in Salesforce Maps. We accomplish this retrieval in two requests while using the same method. The first request returns geographical IDs for properties that Salesforce Maps hosts for a specified area and filter criteria. The second request takes these geographical IDs and display parameters, such as …

Retrieve data hosted by Salesforce. Read More »