3

Does anyone have experience using Platform Events between separate orgs? I'm having trouble finding documentation or mention that something like this is possible. Basically I'd like to define a set of events that partnered companies can subscribe to so they can track our fulfillment process. Typically someone might set up web services or Connections as an integration solution, but I don't like how Connections couples our schema together. Web Services would require developer expertise than I'd like to compel them to pay for. A set of domain specific events is much more re-usable and less likely to change, than an object definition. In our use case of multiple integrated partners it would allow a given org to make changes without requiring a Connection change for every other org Connected to that object.

If it's not possible using more conventional Salesforce tooling, I know I could use a separate middleman pub/sub solution with Platform events, but I'd like to minimize moving parts.

Any info someone might have on the subject would be greatly appreciated!

  • salesforce2salesforce not an option for you? – cropredy Feb 20 '18 at 19:36
  • Salesforce2salesforce connections couple the orgs together by schema which is what I'm trying to avoid. We have multiple partnered companies who would be using the same objects for a salesforce2salesforce connection and that limits our ability to change that published object as it may require changing the connection settings for every company subscribed to the same object. An event definition however would allow each integrated company to decide how they want to handle the event. – zWhiteD Feb 20 '18 at 19:58
  • You can do callouts from SFDC to publish an event to a remote SFDC (that you have authenticated to) but this requires knowledge of the event object on the target system – cropredy Feb 20 '18 at 20:10
  • Maybe combine cropredy's idea with a local Platform Event trigger. The trigger could start an async process to make a callout to any interested system to publish the event there. – Daniel Ballinger Feb 20 '18 at 21:37
  • Yeah, this is probably the simplest solution. I was hoping there were a way to have a shared event-bus without using callouts, but it seems like this would work without too much heavy lifting. At least this way the "subscriber" Apex web service can be domain agnostic and reusable. – zWhiteD Feb 20 '18 at 21:46
4

Response from Jay Hurst (Salesforce PM):

Subscribing and publishing between orgs is not something that is natively supported today. We have discussed it, but it is not on the short term roadmap.

You may want to look into the Salesforce Adapter for Salesforce Connect or Salesforce to Salesforce which are specifically suited to sharing records between orgs (which it sounds like what you want)

Raising an Idea is probably the best way forward for getting native support for this. If you do, please let us know the link to the idea.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.