3

Here's the scenario: We want to include one Platform Event called 'EventABC__e'

It will store record ids of any standard/custom object. Then We will have a Subscriber trigger for that Event e.g.

// Trigger for catching EventABC__e events.
trigger EventABCTrigger on EventABC__e (after insert) {     
    // Iterate through each notification.
    for (EventABC__e event : Trigger.New) {        
        if (event.RecordIds != null) {
            /// do something here
        }
    }     
}

This setup will be part of managed package and we will push to Client's org (Even orgs on Professional or Group Edition)

Then within our managed package apex code we will Publish this event dynamically whenever needed and it should be handled by EventABCTrigger.

Would this approach work?

  • How will the Professional and Group edition subscribers create the required platform event trigger? – Daniel Ballinger Aug 17 '17 at 21:54
  • According to documentation it won't work.. but my question is would it even let us push the package to those orgs.. we can have logic in apex like if it is PE or GE then use other approach and do not Publish any event.. – balinder singh Aug 17 '17 at 23:01
  • So your asking if the presence of Platform Events in the managed package would outright prevent deployment to a PE or GE org? – Daniel Ballinger Aug 17 '17 at 23:04
4

From the documentation, I'm inclined to think that the managed package can contain Platform Events but they just won't work in PE or GE orgs:

No Support in Professional and Group Editions
Platform events aren’t supported in Professional and Group Edition orgs, even if a package containing platform event objects is installed in the orgs.

I read that as not getting blocked on the install of the package.


I've reached out on the official success community channel for clarification.

Update

Official word from Jay Hurst (Director, Product Management)

The install should be blocked

So I interpreted the docs wrong and it isn't possible in PE or Group orgs.

  • Hmmm.. I will try this out in that case... Thanks Daniel – balinder singh Aug 17 '17 at 23:08
  • I'm just double checking with Salesforce that I've read the documentation correctly. – Daniel Ballinger Aug 17 '17 at 23:12

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.