1

My app has a platform event (Log_Event__e). I'm trying to make a trigger on the event from the Developer Console (using a Scratch org on API v41 with a managed package namespace).

When I attempt to create the trigger, Log_Event__e is not listed in the available choices in the "New Apex Trigger" dialog box.

enter image description here

Do platform event triggers need to be created in another manner? If so, how can they be created?

  • 6
    You had the console opened when creating the event from the UI? If so, then refresh your console (F5 or Ctrl+F5) and try again. The console will refresh the metadata and the object will show up on the list. – Renato Oliveira Feb 9 '18 at 20:56
0

You can also create the trigger from the platform event object page just like for any other objects.

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.