Implementing a Subscriber using LWC

Implementing a Subscriber using LWC

Preview unavailable

You must log in or sign up to view this lesson.

LoginSign up

Salesforce Integration Master Course (Advanced Apex)

Buy nowLearn more

Introduction

  • What is Integration?3
  • Things to know about SOAP API & REST API 🤯1
  • What's a request and response in general!
  • Say Hey to API Tokens, Oauth 2.0 & Grant Types in REST API6

Salesforce & Google Cloud Vision API [API Key]

  • Get access to the source code!3
  • How to make a basic Http Callout in REST Api?16
  • Exploring Google Cloud Vision API, testing the API using API Explorer
  • Create a Project, Enable API Google Cloud Console, Use Apex to hit the endpoint.5
  • Create a LWC component and hook up the button to hit Google Cloud Vision Api8
  • Deserializing the JSON response using JSON.deserializeUntyped3
  • Creating a list of custom defined data types and sending it to LWC component.2
  • Using JSON.deserialize() to deserializing the JSON and get the same output13

Salesforce & HubSpot Integration [Auth Code Grant Type]

  • Intro to Auth Code flow or Authorization code flow
  • HubSpot account creation, app creation and implementing Auth code grant type authentication6
  • Testing the API using HubSpot native playground2
  • Using Postman App to get the JSON response1
  • Creating a LWC component and exposing it as a Lightning Tab
  • Why do I need to use window.location.href and not Navigation Mixin?5
  • I need to change the redirect URL and make things dynamic
  • Inject the Auth code from VF to LWC and hold the state of the data
  • Trade the auth code for access_token1
  • Extract the access_token and get the company record using the token2
  • Alright, let's make a POST callout now and serialize the input2
  • Let's deserialize the batch companies info JSON response we got back
  • Use Custom Metadata Types to replace hardcoded client_id and client_secret
  • Use Custom Settings to store access_token, refresh_token and expires_in info
  • Check if access_token is valid or not and reuse it
  • Executing all three scenarios, fresh login, valid access_token and expired access_token

Salesforce & Service Now Integration [ via PKCE Grant Type]

  • Introduction to Proof Key for Code Exchange Flow [PKCE Flow]
  • Spinning up a new Dev Instance on Service Now Platform
  • Let's understand how to get auth code and access_token10
  • Now that we know how to get Auth Code and access_token let's test it using Postman App
  • Writing code to generate and get the Auth Code5
  • Let's send Auth Code to LWC and extract it using CurrentPageReference
  • Now let's get Access Token from Auth Code & Code Verifier
  • Get all incidents JSON response after Authentication2

Salesforce & SharePoint (One Drive) Integration [Client Credentials Grant Type]

  • Introduction to Client Credentials Grant Type
  • Register a new App in Azure Dev Portal
  • Use Postman App, Configure Client Credentials Grant, authenticate the user and get the details of the files in OneDrive3
  • Hit the SharePoint API and get the info about all Sites
  • Write an Apex class, implement Client Credentials Integration to get the Access Token
  • Use the access_token to fetch the files from the Drive2
  • Path ahead!1

Integrating Salesforce with Youtube [via API Token]

  • Managing API Key's
  • Making HTTP Callouts & handling response13
  • Parsing JSON HTTPResponse9
  • Using Wrapper Classes to strip JSON Response6
  • Iteration through Wrapper Class Dataset
  • Making the Search Component Dynamic1
  • Refactoring the Apex Controller6
  • What's the real world problem that we are trying to solve here?5

Integrating Salesforce with Box.com [via Authorization Code Grant Type]

  • Reason behind choosing Visualforce & Box.com platform
  • Setting up your Box.com account3
  • Understanding Authorization Code Grant Type [Web Server Flow]4
  • Creating client id and client secret with Box.com10
  • Fetch Authorization code after successful login 3
  • Exchange Authorisation code for Access Token7
  • Fetch and Deserialize files of a folder in Box.com using Access Token
  • Displaying files list on a Visualforce Page from Box.com 1
  • Connecting all the dots!9

Integrating Salesforce with Box.com using LWC [via Authorization Code Grant Type]

  • Create a LWC and expose it as a Tab1
  • Created another custom app in Box.com Dev console for Integration using LWC1
  • Page Reference vs Navigation Mixin vs window.location.href6
  • Fixing the issue with Lightning and query string params8
  • Let's first get the access token
  • Let me show you another simple way to deserialize the JSON response1
  • Now let's the files from a folder and display it in the LWC template2
  • A few design based decisions that we cannot skip discussing
  • Let's work on making the code fool proof!
  • What if the Access Token expires? Refresh token says, Don't worry, am there!
  • How to handle and avoid uncommitted work pending exception?
  • Yet another round of refactoring the code4
  • Let's get the client_id and client_secret generically using Custom Metadata Types3

Integrating Salesforce w/ Third Party Platform [via PKCE Grant Type]

  • Introduction to Proof Key for Code Exchange [PKCE]3
  • Let's get to the bottom of it!4
  • Test the API using Postman
  • Apex implementation of PKCE 1/35
  • Apex implementation of PKCE 2/3
  • Apex implementation of PKCE 3/3

Integrating Salesforce w/ Third Party Platform[via Implicit Flow]

  • Introduction to Implicit Flow Grant Type
  • Testing API via Postman before we code it
  • Using Apex to implement the Implicit Flow Grant Type

Integrating Salesforce w/ Third Party Platform [via Client Credentials]

  • Introduction to Client Credentials Grant Type
  • A few changes we need to do before we test the API
  • Testing the API using Postman4
  • Apex Implementation of Client Credentials Grant Type8
  • Using Apex to get files after getting Access Token

Integrating Salesforce w/ Third Party Platform [via Username & Password Flow]

  • Introduction to Username and Password Grant Type1
  • Testing the API using Postman1
  • Using Apex to Implement the Username and Password Grant Type14

External Credentials & Named Credentials

  • Implement the end-to-end External Credentials configuration2
  • Make a call out using Named Principle Identity Type1
  • How and when to use Per User Identity Type in principle1
  • Let's get to making the endpoint dynamic, yeah!2
  • Working with Github Provider Type1
  • Configuring Github Provider Type using Per User Identity Type

Slam Dunk Integration using Connected Apps

  • Purpose of Connected Apps?2
  • Integration using Web Server Flow7
  • Integration using Username & Password Flow1

Single Sign-On

  • Single Sign-On, why and how?9
  • Things to know about Registration Handler1
  • Auto Created Registration Handler Apex classes
  • Understanding the URL in SSO
  • Enabling SSO for communities

JWT [JSON Web Tokens]

  • Introduction, Terminology, Working & Demo 1
  • Creating Public Key, Private Key and Certificate3
  • Creating connected app and uploading the certificate7
  • Creating required classes, specifying the algorithm & framing the payload1
  • Generating the assertion or signature1
  • Get the access token
  • Fixing some interesting errors2
  • Get list view details from the destination Org1
  • Winding up JWT by refactoring the code

Create REST API using Apex

  • Create a GET method using Apex REST Service
  • Creating a Connected App and testing the API via Postman4
  • Understanding the properties of RestContext, RestRequest & RestResponse
  • Create a POST method using Apex REST Service4
  • Deserializing Sobject params in a POST method4
  • Deserialising complex params in a POST method 7
  • Return response from a POST method using RestContext
  • Create a DELETE method using Apex REST Service2
  • Few gotchas about Apex REST Framework2

Extend Salesforce Horizon with Platform Events

  • Platform Events, Introduction
  • How to fire a Platform Event from Process Builder?
  • Fire a Platform Event using Flows1
  • Fire a Platform Event using Apex
  • Fire a Platform Event with the help of API4
  • How to debug the Platform Events fired?
  • Subscribe to the Platform Events using Process Builder
  • Subscribe to the Platform Event using Flows
  • Subscribe to the Platform Event using Triggers
  • Subscribe to the Platform Event using Aura Components
  • Subscribe to the Platform Event using Lightning Web Components

Headless Salesforce 360

  • I will explain Headless Salesforce 360 in super simple terms.
  • How to connect a client to Salesforce Headless 3601

What's up with BULK API V2.0?

  • Introduction and Inserting records using BULK API V2.02
  • Let's query some data using BULK API 2.0
  • Delete records using BULK API 2.0
  • Let's work on a scenario part - 1/42
  • Let's work on a scenario part - 2/41
  • Let's work on a scenario part - 3/43
  • Let's work on a scenario part - 4/44

Chatter API

  • Introduction to Chatter Connect API
  • At-mentioning a user using Chatter Connect API
  • Post a comment programmatically using Chatter Connect API2
  • Comment with a file using Chatter Connect Api

Streaming API

  • Introduction & Implementing a subscriber using Aura Component3
  • Implementing a Subscriber using LWC2

Tooling API

  • Introduction to Tooling API and when to use it?
  • Tooling API & Apex2

Metadata API

  • Create Custom Objects using Metadata API4

Salesforce to Salesforce Integration

  • Everything you need to know about end to end Salesforce to Salesforce Integration3

Code in the Wild

  • Salesforce & HubSpot Integration [Auth Code Flow]