Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform Events in New Apex Trigger SObject list #173

Open
superdave7380 opened this issue Feb 10, 2018 · 12 comments
Open

Platform Events in New Apex Trigger SObject list #173

superdave7380 opened this issue Feb 10, 2018 · 12 comments

Comments

@superdave7380
Copy link

Hiya. I'd like to be able to see Platform Event sObjects in the list of selectable sObjects when I click New ApexTrigger.

Thanks very much! Keep up the stellar work!

@xjsender
Copy link
Owner

@superdave7380 , you mean Event Object, it is already available.

@superdave7380
Copy link
Author

superdave7380 commented Feb 11, 2018

@xjsender , no. Platform Events. They're new-ish. A new type of custom SObject. blah__e They showed up a few releases ago. You can find them in the Setup menu. And once created, you can create After Insert (and only After Insert) triggers for them.
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_intro.htm

xjsender added a commit that referenced this issue Feb 12, 2018
@xjsender
Copy link
Owner

@superdave7380, you know, Platform Events was released since Spring 17, which is also mean Platform Events object is accessible since API v39.0, so you should change the project API version to above 39.0.

A bug is also fixed at the same time.

@superdave7380
Copy link
Author

@xjsender I've been on v41.0 for a while now. Still, when I do New > New ApexTrigger, I don't see any __e objects. My Platform Event, Order_Event__e, is visible in the objects folder, i.e., I do have an Order_Event__e.object.

@superdave7380
Copy link
Author

If this helps at all, know that Platform Events are NOT queryable. For example, in the Workbench, you can see the describe info for Platform Events, but you can't see actual records.

@xjsender
Copy link
Owner

@superdave7380 , yes, Platform Event is a very specify type, only Platform Event is not queryable and triggerable.

I need to release the new version before you can use it.

@superdave7380
Copy link
Author

Perfect. Thanks.

@xjsender
Copy link
Owner

xjsender commented Feb 12, 2018

@superdave7380 , it's released just now, you can check at package control when it's available, after it is available, 3.5.4 will appear in haoide at Package Control

@superdave7380
Copy link
Author

Awesome. Thanks very much for maintaining this plugin.

@superdave7380
Copy link
Author

Sorry, @xjsender. 3.5.4 hasn't resolved the issue. __e Sobjects still aren't available in the triggers list. Not a critical issue, as I can still create the trigger file manually by right-clicking the triggers folder..

@xjsender
Copy link
Owner

xjsender commented Feb 13, 2018 via email

@superdave7380
Copy link
Author

Sorry, that doesn't do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants