Your Rocket.Chat version: 0.46
I need to know when a new channel is created but the outgoing webhooks feature seems to just handle watching of messages. (like Slack do)
If there is no other way to get an event when a new channel is created I'll add a webhook triggered by callback "afterCreateChannel" to handle it.
Edit: The webhooks/integrations feature is totally centered on messages events. Hard to believe I can just "add" channels events.
Please @RocketChat/core let me know if you think that webhooks for channels related events is a good/bad idea.
@graywolf336 can you help here?
@engelgabriel This request is a new feature that we would need to add, which in the long term would be nice to have for Zapier so it gets notified instead of continually polls for new channels/groups. Is this something you're interested in?
@Huljo We will be adding this in the very near future 👍
@graywolf336 Exactly what i'm interested in.
But I'm afraid by this affectation to "nice-to-have" since there is an issue here since 20 Aug 2015.
@Huljo re-prioritized
Moving to the next release so that this lands around the same time as #5176
Hi @graywolf336, I just tried the new "roomCreated" webhook but there is no post request when creating a new room... messages events work fine. :(
Did you turn on debugging and see what that outputs?
On Mon, Mar 20, 2017, 9:35 AM Josselin Mo notifications@github.com wrote:
Hi @graywolf336 https://github.com/graywolf336, I just tried the new
"roomCreated" webhook but there is no post request when creating a new
room... messages events work fine. :(—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RocketChat/Rocket.Chat/issues/5226#issuecomment-287746564,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAz518JgKJzW6JiV-__NUkev4PAvuAaAks5rnnKJgaJpZM4LOFBv
.
@graywolf336, there is the logs when a new channel is created :
[Integrations ➔ Outgoing WebHook.debug Execute Trigger: roomCreated
[Integrations ➔ Outgoing WebHook.debug Got the event arguments for the event: roomCreated { event: 'roomCreated', owner: { username: 'admin', _id: '35kRCc44rxsN9nRGF' }, room: { name: 'test16', t: 'c', usernames: [ 'admin' ], msgs: 0, u: { _id: '35kRCc44rxsN9nRGF', username: 'admin' }, customFields: {}, ts: Mon Apr 03 2017 12:12:35 GMT+0200 (CEST), ro: false, sysMes: true, _updatedAt: Mon Apr 03 2017 12:12:35 GMT+0200 (CEST), _id: 'CuXN92trZSs8E5qSZ' } }
[Integrations ➔ Outgoing WebHook.debug Starting search for triggers for the room: CuXN92trZSs8E5qSZ
[Integrations ➔ Outgoing WebHook.debug Found 0 to iterate over and see if the match the event.
The trigger is "Room Created (public and private)" but I got the same result with "channel archived"
If I just change the event trigger to "Message sent", those lines are now visible :
Integrations ➔ Outgoing WebHook.info Will be executing the Integration "testIntegration" to the url: http://localhost/webhooks/testendpoint
Integrations ➔ Outgoing WebHook.info Status code for the Integration testIntegration to http://localhost/webhooks/testendpoint is 200
Hi @graywolf336 any news about this? Would you need more info about those logs?
@Huljo have you tried again with the latest version that was just released? I believe it was fixed there
Thank you @graywolf336, problem solved in 0.55.1 (tested)
Most helpful comment
Moving to the next release so that this lands around the same time as #5176