Integrating with Salesforce using Platform Events

In this session we talk about how to Integrating with Salesforce using Platform Events and when to use platform events on Salesforce platform. Before getting started let understand the point to point integration challenges for Salesforce Integration.

Point to Point Integration Challenges

Here are few challenges of point to point integrations.

  1. Scalability: Inclusion and removal of entities to the communication is time consuming.
  2. Tight Coupling: Dependency on every integration point makes it maintenance heavy.
  3. Non Ubiquitous Communication: Inconsistent & disparate data exchanges formats.

Event Driven Architecture

Let see how we can resolve the issue of point to point integration. Yes we can use the Event Driven Architecture. We can use platform event in Salesforce for event driven solution.

Understanding Platform Events

  • Sobject like Salesforce Entity
    • Suffixed with __e
    • ReplayID for replaying specific event
  • Pub/Sub based communication
    • No polling required
  • Heterogeneous payloads
    • Define events with different payloads

Learn more about platform event in Salesforce.

Integrating with Salesforce using Platform Events Video

In this session we will use shipping app use case for demo. Here is use case where we are using Order management application to integrate with Shipping application. Once the order is submitted then we are passing details to shipping app and tracking the shipping status in Salesforce. Check out our Video for application demo.

Agenda of session

  1. Point to Point Integration Challenges
  2. Solution – Event Driven Architecture
  3. Understanding Platform Events
  4. Publishing & Subscribing to Platform Events
  5. Demo
  6. Q & A
YouTube video

Here is PPT of Session.

Please Subscribe to the channel to get notification for upcoming recording.

If you are new in Salesforce. Please check our free Salesforce Admin and Salesforce Developer training.

Summary

I hope session on Integrating with Salesforce using Platform Events helped your to understand the basic of platform event. Please check our other session Overcome Salesforce Governor Limits Using Platform Events where we cover other use cases of platform event.

Amit Chaudhary
Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates.

He is a active blogger and founder of Apex Hours.

Articles: 473

2 Comments

  1. As platform event is similar to object and publish event has payload same as field api name and value like
    {
    “OrderNumber”:”101″,
    “Status”:”Shipped”
    }

    But what if we want to send Order with Order Product where order product would be multiple payload would be
    { “OrderNumber”:”101″,
    “Status”:”Shipped”
    “OrderProduct”:[
    {
    “OrderProduct”:”P101″
    }.
    {
    “OrderProduct”:”P102″
    }
    ]
    }

    And what is limit of data that we can publish in case above scenario.

  2. Hi Amit,

    I saw this session and its really help me to learn Platform Event.
    I have a question is “How the external system knows the event which want to subscribe is already published or not?”

Leave a Reply

Your email address will not be published. Required fields are marked *