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:
Great blog visit best salesforce training
ReplyDeleteThe 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
ReplyDeleteThere 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
ReplyDeleteInside a couple of months, our fantasy transformed into a bad dream. Daniela and Rupert were essentially squabbling furiously. Deep Etiching Service
ReplyDeleteDemise 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