Platform Events

Platform Events

 

 

Integration from Salesforce to External client

 

Publishing:

1.       Create a record in platform event object ( newPEvent__e) using the following:

a.       Process (Process Builder)

b.       Flows

c.       Apex

                                                                           i.      Ex:

newPEvent__e  ne = new Low_Ink__e(field__c='XZO-5');

EventBus.publish(ne);

                Subscribe:

1.       External system subscribes, and listens to the latest event records.

a.       Use CometD to subscribe to platform events.

b.       We can also use EMP Connector

Integration from External client to Salesforce

Publishing:

1. Create a record in platform event object ( newPEvent__e) using api from any of the external client.

d.       APIs

                                                                           i.      Ex:

                                                                         ii.      Use /services/data/v46.0/sobjects/newPEvent__e/ endpoint

                                                                       iii.      Request body

{

   " field__c " : "something"

}

 

 

                Subscribe:

2.       Salesforce subscribes, and listens to the latest event records.

a.       Process.

b.       Flows

c.       Triggers

d.       Lightning Components 

 

Helpful docs I got online:

https://docs.cometd.org/

https://hexaware.com/blogs/learn-about-platform-events-event-driven-messaging-capability-for-salesforce-integrations/

https://trailhead.salesforce.com/en/content/learn/modules/platform_events_basics/platform_events_define_publish

5 comments:

  1. The spot was a microcosm of Parisian culture and ethos. Generally significant, it was viable with birthday man, Mike's scholarly twisted of psyche and tastes. web-based reserved seating software

    ReplyDelete
  2. There was no change to or reprieve from this everyday practice. The sheer tedium of it caused me to feel like a machine, as though I would proceed with this drudgery even after Jacques' passing. Comedy Shows

    ReplyDelete
  3. Inside a couple of months, our fantasy transformed into a bad dream. Daniela and Rupert were essentially squabbling furiously. Deep Etiching Service

    ReplyDelete
  4. Demise would end his misery, at all events. His was a high level type of mind disease. Working to demolish the cancers would be well near incomprehensible - they were housed in the most imperative pieces of his cerebrum. eventsliker.com

    ReplyDelete

Powered by Blogger.