Category Developers

Content related with developers

COVID-19 Tracker App

A COVID-19 tracking app for India on Salesforce, leveraging lightning components, Apex classes, and a VisualForce page. It uses APIs from Covid19india.org and NewsAPI, along with the ChartJS library for visual data representation. Source codes and set-up instructions are provided.

Locate Accounts Address On Google Map

Arun Kumar shares multiple gist codes for accounts mapping in Salesforce such as 'AccountsOnMap', 'AccountOnMapController', 'AccountOnMapHelper', 'AccountsOnMapCSS', and an 'Apex Class'. He advises creating a lightning component tab and using it in the tab, providing a detailed link for reference.

Toast Message In Lightning Component

The event "$A.get("e.force:showToast")" in Salesforce's Lightning Experience, Salesforce Mobile, and Lightning Community generates a toast message to provide user feedback. It offers various attributes for customization, including title, duration, and message. Messages can be styled differently and auto-dismissed based on specified duration.

Custom Tab For Lightning Web Components

The post explains the process of using a Lightning Web Component (LWC) in a custom tab in both the Salesforce mobile app and Lightning Experience. This is possible since Winter '20 release by setting "isExposed" to TRUE in the metadata file and adding "lightning__Tab" to target to enable the LWC in the Custom Lightning Component Tab.

Lightning Stateful Button Component

The lightning:buttonStateful represents a toggleable button state similar to those found on social media. It enables dynamic display of different labels and icons. Specific examples and further information can be found on the Lightning Design System and Salesforce Developer websites.

Translate Chatter Feed | Text Translation API

Arun Kumar explains the use of Yandex Translate Text API for translating text content in different languages. This free API blends neural network and statistical approaches for machine translation. The post gives details about the API Request syntax, the query parameters, and showcases example code for translating 'chatter feed'.

Get Parent Record Id From Lightning URL

The post discusses creating a lighting component for a new record related to Opportunity in Salesforce. The challenge is to auto-populate the Opportunity record, but the "force:hasRecordId" interface is insufficient as it only provides the current record ID. The solution given advises using the "lightning:isUrlAddressable" interface to generate a URL and retrieve the Opportunity record ID.