Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Salesforce: REST Integration with JSON, HTTP and OAuth 2.0
Rating: 4.4 out of 5(103 ratings)
449 students
Created bySalesforce Mix
Last updated 8/2021
English

What you'll learn

  • Learn Salesforce Integration using REST API, JSON Structure, Dynamic Serialization and Deserialization of JSON, HTTP Callouts, OAuth Authentication and a lot.

Course content

1 section34 lectures5h 39m total length
  • What is Server and Client?4:58

    Understand server and client roles in a service integration. See how a service consumer requests data from a service provider and receives a response via a listener.

  • The three forms of Integration4:02

    Explore the three forms of Salesforce integration: no-code built-in configurations like SSO and Outlook; Data Loader and tools; or building your own web service with SOAP or REST APIs.

  • Basic Guidelines for Server and Client to establish connection6:17

    Learn how client and server establish connections by following protocols, exchanging data in JSON, and authenticating via login credentials, connected apps with access tokens, certificate-based methods, or open APIs.

  • How to write Json for a Class13:30

    Learn how JSON formats data as name-value pairs, using curly braces for objects and square brackets for lists, with examples like last name, first name, and email.

  • First look to JSON class and its method9:23

    Discover how the Salesforce json class in the system namespace converts objects to json strings using serialize and deserialize for rest integration.

  • First look to JSONGenerator class4:43

    Explore the JSONGenerator class, learn serialize and deserialize methods for converting objects to JSON, and use createGenerator to produce a pretty-printed, indented JSON generator.

  • How to call methods in JSONGenerator class2:05

    Learn to use the JSONGenerator class to dynamically invoke methods by name, pass boolean inputs, and call specific helpers such as right start object and right field your name.

  • First Look on how to create JSON Dynamically11:20

    Learn to create JSON dynamically using a JSON generator, define attributes, format data as strings, and build status-driven payloads for REST integration in Salesforce.

  • Real Time JSON Generator - 14:31

    Develop a real-time JSON generator using Apex input text and page blocks to collect first name, last name, email, and phone, producing dynamic JSON on submit for a VF page.

  • Real Time JSON Generator - 28:15

    Learn to generate JSON in real time, build a contact object, perform insert operations, and handle success or failure statuses with dynamic string and date fields.

  • Real Time JSON Generator with List/Array13:54

    Learn to build a real-time json generator by querying accounts and returning only name and industry in a json array, plus a status of success or failure.

  • Lecture 123:35

    Master rest integration with json and http in Salesforce by creating a contact, linking related contacts to an account, and using a last name query to populate and save records.

  • Lecture 1318:38

    Learn three deserialization methods: convert a JSON string to a standard class or wrapper, use strict mode to require all attributes, and map attributes to a name-value pair map.

  • Lecture 1418:29

    Master dynamic json parsing by breaking json into tokens, using next token and get text to read values and retrieve fields like access token and refresh token.

  • Lecture 156:28

    Parse json to extract a contact's last name and department using a token-based parser, converting the data into a standard contact object for rest integrations.

  • Request Message11:12

    Decode how a Salesforce client sends an HTTP request: a mandatory request line with method, URL, and protocol, plus a header of properties and an optional body.

  • HTTPRequest Class and HTTP Class10:21

    Learn to frame http requests in Salesforce using the http request class, setting the method, endpoint, headers, timeout, and body (json or text), then sending and processing the response.

  • HTTPResponse Class9:45

    Learn how HTTP response messages are structured—status line, headers, and body—and how the HTTPResponse class exposes the status code, headers, and body, which may contain JSON or text.

  • GET Method Theory12:12

    Learn how the get method queries data from open APIs by hitting a target endpoint with optional headers and URL parameters, without a request body or authentication.

  • GET Method Practical Example11:21

    Learn to construct a http request to a service endpoint with a user-provided parameter, send the http call, and parse the json response while handling missing authorization.

  • Dynamic JSON Deserialization to show Post Office Name5:37

    Learn to dynamically deserialize JSON to extract post office names in a Salesforce REST integration, iterating tokens and collecting names into a list for display.

  • API Key Authentication26:31

    Learn to authenticate API requests with an API key, call REST endpoints using get with query parameters like zip code, and parse JSON responses to extract weather data.

  • Your Custom Web Service in Apex11:58
  • POST Method11:03

    learn how to implement a post method in a Salesforce rest service to create a contact from first name, last name, and email, and return a json status and data.

  • POST Method Test using WorkBench4:52

    Test a Salesforce rest post using workbench by sending a json payload (first name, last name, email) to an endpoint, validating success and errors when fields are missing.

  • Understand RestContext11:29

    explore how rest context in salesforce provides access to the request and response, read headers and body from rest request, and configure a response using rest response properties.

  • GET Method Test Using WorkBench18:00

    Test a Salesforce rest endpoint with Workbench, returning accounts with name, industry, and id in a JSON response, including a status indicator for success or failure.

  • Intro to Authentication5:26

    this lecture introduces authentication in rest integration, clarifies client versus service provider responsibilities, and outlines how to authenticate a client, with plans to cover authentication approaches in the next lecture.

  • OAuth Flow Theory11:40

    Learn OAuth flow theory for Salesforce REST integration, authenticating via the authentication server to obtain an access token from a connected app with a consumer key and secret.

  • Client Org Setup2:47

    Configure a client org for Salesforce to Salesforce integration by setting up a domain, registering the domain with service providers, and logging in to test the connection.

  • Create a Connected App10:08

    Create a connected app in Salesforce to obtain the consumer key and secret, then prepare a user and authenticate via a post request to receive an access token.

  • Write Apex to get Access Token10:10

    Write Apex to get access token from Salesforce by posting credentials to the token endpoint, parsing the JSON response, and extracting the access token for authenticated calls.

  • Create UI for Customer Use and get the Access Token12:21

    Create a user interface to collect consumer key, consumer secret, username, and password, configure the authorization endpoint and remote site settings, and generate an access token for rest calls.

  • Hit Server with Access Token12:44

    Hit the service with an access token to create a contact via a post request, sending first name, last name, and email in json and handling the json response.

Requirements

  • You should have basic understanding of Apex to start this course.

Description

In this course we will cover different ways in which a developer can integrate Salesforce System with some other application. We will be discussing Http Callouts and REST API. Course cover various real time scenarios and relevant examples to make things easy to understand and ready to use. A basic understanding of APEX and VisualForce (or any other Markup language) will be required to start with the course.


In this course we will cover different ways in which a developer can integrate Salesforce System with some other application. We will be discussing Http Callouts and REST API. Course cover various real time scenarios and relevant examples to make things easy to understand and ready to use. A basic understanding of APEX and VisualForce (or any other Markup language) will be required to start with the course.


In this course we will cover different ways in which a developer can integrate Salesforce System with some other application. We will be discussing Http Callouts and REST API. Course cover various real time scenarios and relevant examples to make things easy to understand and ready to use. A basic understanding of APEX and VisualForce (or any other Markup language) will be required to start with the course.

Who this course is for:

  • Students who are developer on Salesforce CRM and new to Integration