Posts

Showing posts from May, 2024

Integrating Salesforce with Google Drive for File Uploads

Image
   Integrating Salesforce with Google Drive for File Uploads In this blog, we will walk through the steps required to integrate Salesforce with Google Drive for uploading files. We'll cover the necessary setup on Google Cloud, obtaining the required credentials, and the Salesforce Apex code to facilitate the integration. Step 1: Create a Project in Google Cloud Go to the Google Cloud Console. Create a new project by clicking on the project dropdown and selecting "New Project". Name your project and click "Create". Step 2: Enable Google Drive API In your new project, go to the "APIs & Services" dashboard. Click "Enable APIs and Services". Search for "Google Drive API" and click on it. Click "Enable" to enable the API for your project. Step 3: Create OAuth Credentials In the "APIs & Services" dashboard, click on "Credentials". Click "Create Credentials" and select "OAuth 2.0 Client ...

Standard events are built-in browser events like click or change, while custom events are events that you define and dispatch yourself.

Image
            Types of Events in LWC LWC provides two main types of events: standard events and custom events. Standard events are pre-built by the LWC framework and can be used to handle common user interactions like clicks, inputs, and changes. Custom events, on the other hand, are defined by developers and can be used to trigger actions or communicate between components in a more specific and tailored way. Understanding the differences between these event types is crucial for building effective LWC components. In this section, we’ll explore both standard and custom events in LWC in more detail and provide examples of how to use them. 1. Standard Events in LWC Some examples of standard events in LWC include “click”, “input”, and “change”. The “click” event is triggered when the user clicks on an element in the component, while the “input” event is triggered when the user types something into an input field. The “change” event is similar to “input”, but is o...