function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Madhusudan Singh 19Madhusudan Singh 19 

What all details to be shared to 3rd part system for subscribing to platform event

Hello Geeks,

I have a scenario below.

1. 3rd party web-based application has to subscribe to a platform event. So that their end users will be notified.
2. 3rd party server has to subscribe to a platform event. So that their system can make required changes to their database

Wanted to know what all details I need to share with 3rd party system so that they can subscribe to both platform event.

Regards
Madhusudan Singh
VinayVinay (Salesforce Developers) 
Hi Madhusudan,

The external system should listen for platform events using CometD or you can use the EMP Connector: an open-source, community-supported tool that implements all the details of connecting to CometD and listening on a channel.

Reference:
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/code_sample_java_client_intro.htm
https://jayakrishnasfdc.wordpress.com/2020/09/04/platform-events-and-examples-how-to-create-in-salesforce/

Please mark as Best Answer if above information was helpful.

Thanks,
 
Madhusudan Singh 19Madhusudan Singh 19
Thanks Vinay,

But I wanted to know what details I need to share with 3rd Party. I know they can use CometD but what details I need to share with them so that they can use CometD?

Do I need to create a connected app and share client Id, client secret and username password ? or just client id and client secret?

Regards
Madhusudan Singh