Create Channel Dynamically if any message gets in to Channel

Brass Contributor

Is there any option in Teams where I can create a channel when any specific message gets in to channel?

Example:

1) Channel  receives the message like " This is Teams Developer, And you are a good developer

2) Condition: If the message contains Teams then create new channel with the name "Channel1204" and Add the user User1, User2, User3.

I know that if channel is private then We can add the specific user in it and in case of public all Teams members inherited it.

Any relevant answer is appreciated.

 

Note: the message might receive from user or Via Incoming connector.

 

 

4 Replies

@NadirRiyani umm, why?

 

Yes the graph api could read messages, and could create channels, maybe write an Azure Function.

@Trinetra-MSFT  Thank you for your response.

 

Yes, I knew the Graph API is the option. Here two questions on it.

1)  Is it possible to create Channel without Authentication (i.e. AAD Token - using single Signon OR AAD Username/Password)?

2)  Which event do you suggest in Bot framework which executes when any Message gets Into the channel?

@NadirRiyani ,

1. Creating a channel using Graph API requires Group.ReadWrite.All permissions consented by admin, If your access_token have these permission, i think you are good to call this API.

2. Whenever a new message or post arrives in a channel, You can go with the change notification API, which are useful to read chatMessages in channel but for that You need to subscribe to the channel. and need some more permissions to work with these API.