sObjects Ineligible for DML Operations
These objects do not support Data Manipulation Language (DML) operations in Apex, but they do allow for SOQL querying. Here is the list of such objects:
These objects do not support Data Manipulation Language (DML) operations in Apex, but they do allow for SOQL querying. Here is the list of such objects:
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 …
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 »
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 »
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 »
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 …
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 »
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 …
This example illustrates how to support external lookup relationships and multiple tables. An external lookup relationship links a child standard, custom, or external object to a parent external object. Each table can become an external object in the Salesforce org. For this example to work, create a custom field on the Contact standard object. Name …
Custom Adapter for Salesforce Connect on Stack Overflow Read More »
Just like any other Apex code, a Salesforce Connect custom adapter can make callouts. If the connection to the external system requires authentication, incorporate the authentication parameters into the callout. Authentication parameters are encapsulated in a ConnectionParams object and provided to your DataSource.Connection class’s constructor. For example, if your connection requires an OAuth access token, use code similar to …
Outbound Requests for Salesforce Connect Custom Adapters Read More »