what events can trigger webhook in MS Teams? - webhooks

Hi StackOverflow community:
Hope everyone is as well as possible during this current pandemic. We're developing an AI-based system which needs to collect inputs from various sources, including MS Teams. For example, we need to be able to trigger an API call when someone clicks on a 'channel' or a 'chat', when they click on a link which takes them outside of MS Teams (for example, they click on a weblink which takes them to a website), when they post in a chat/channel and so on.
Given that this program will be used by many non-technical users, we don't want the user to have to initiate the API call - it has to be done automatically.
I was hoping please that some people would be able to let me know which actions can/can not trigger API calls and outgoing webhooks? And the best way of automatically triggering the API calls when these events occur?
Any help would be greatly appreciated!
Josh

Related

How Can I fetch my customers data from my CRM and show on Twilio frontline app

I hope you are well. Thank you for Mail. I was quite busy on these days. That's why, I can't able to reach out you.
Actually, I have some questions regarding some issues. I'm working to build a system in which I can fetch the customers data from my CRM to Twilio frontline app. The half of the job is done. Like I make the okta developer account and ready for user access to Twilio frontline app. But the main issue is that I'm not able that How I can fetch the Customers Data from my CRM(Pipedrive) to Twilio frontline app to contact with customers over the app. Let me show you How I actually work on it. I'm currently working according to your blog for Twilio frontline app:
https://www.twilio.com/docs/frontline
And I'm now on this URL:
https://www.twilio.com/docs/frontline/nodejs-demo-quickstart
I'm also using Ngork and Yarn as Local Host but I'm stuck over here.
Now, I need to complete this and go forward to get customers data. I'm confused here. So, I need your help.
Now, the Questions is that How I can make a Node.js script or any other script that can fetch my CRM(Pipedrive) data and show on Twilio frontline app. I need the exact script. OR Is there is any other option that I can easily fetch the customer data.
Thank you!
Regards,
Ehtisham
I want customers data(PHone number, Whatsapp number, Email) from my CRM(Pipedrive) into frontlineapp to contact with the customers. And Also I need a feature that When I text to someone from frontline app it will also save the chat to the person's timeline.

When I create an Azure AD user, the calendars "allowedOnlineMeetingProviders" is empty, how do I update this?

I need a users calendar to have the property "allowedOnlineMeetingProviders" contain "teamsForBusiness". I am not able to add the calendar via the create user call (graph api) so I had to subsequently update the existing calendar but it wont let me update the property (only name seems to update). Anyone know how I can programmatically set this property?
Its because its not expected workflow ~ Microsofts response:
Hope you are doing good.
Apologies for the delayed response, I have tried to gather more details on this behavior internally, but unfortunately since this is an existing behavior in the system i.e. by design we can say since the new user needs to have some kind of interaction with the MS teams initially.
Unfortunately, we aren't much help on this scenario from MS graph api standpoint.
We request you to provide your feedback/ideas/suggestion https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform
We regret not being helpful to you on this case since this is a known issue.
Kindly let us know if you have any queries.

Microsoft Teams - Power Automate - Bot replies to older messages

I’m having a problem with a bot that has to reply automatically when a message is posted in a Teams channel. When it is activated, it also responds to messages that were posted prior to its activation. How can i avoid this ?
Thanks for your help
I'm assuming you're running a flow with a Microsoft Teams trigger.
I can see two possible causes of this.
This first is that Microsoft's Team trigger doesn't work very well and is firing for previous posts while the Flow is disabled. Very plausible
If that's the case you need to make a Condition to check if the post date is greater than the current time minus say 10 minutes, AddMins(UtcNow(),-10). If successful, continue, if not, terminate.
Hopefully, you can pull the post date directly from the Teams trigger, but if not you'll have to use a Teams action to look up information about the given post id provided by the trigger.
The second possibility is that you're not taking the ID from the trigger which will tell you what post to respond to, and accidentally doing some kind of reply to all posts in the channel.

Can Logic Apps Monitor a large number of calendars effectively?

PROBLEM
We want to track changes in user calendars, but are concerned with how often we'd need to check 2000+ user calendars (Outlook).
Would the process of monitoring over 2000 user calendars present a problem for our network?
WORKFLOW
Trigger (Check for calendar change) -> ACTION (Http: update a DB)
The Trigger below checks a calendar every 2 seconds. Is there a trigger that behaves like a "subscription" object where it simply handles a change notification?
For the question about how often to check the calendar events, it depends on your requirement. In my opinion, if you set check event every 2 seconds(it's a little bit more frequent), you'd better check if your logic app set as run in parallel. You can click the ... button of the trigger and click "Settings". Then check if it is same to below screenshot.
For your question about is there a trigger that behaves like a "subscription". I'm afraid it doesn't exist a trigger which can implement this requirement in logic app. We can also check if any backend api can implement it, we can see the graph api document.
The example in above screenshot is for mailFolders, but it's same with events. We can see it is necessary to specify a user(like me) or a group before the /events. So I don't think we can monitor the subscription events. You can raise a post on Azure feedback page to suggest developer add this feature.

trigger AWS Lambda function via MS teams

Is there a way we can trigger AWS Lambda function from Microsoft Teams. what I wanted to achieve is that stakeholders be able to approve merge requests from MS teams or maybe give an approval on Production rollout.
Is this connection possible at all?
Please help
Yes, this is definitely possible, but there are a bunch of things you need to do to get a full working solution, so it's hard to give it all in one answer here. Here are some guidelines to get started though:
You need a something for the user to actually "Approve", and way to do this. A common approach is to send a "Card" to Teams, which can have an "Approve" button. There are a few different kinds of cards, and different ways to send them to Teams, including a Bot, Flow/PowerAutomate (which uses it's own Bot behind the scenes) and incoming Webhooks.
When the user clicks the "Approve" (or "Reject") buttons, you need a way to handle the action (to link the button click to AWS).
If you've built Bots before, this might be the easiest option. If you want to use Flow/Power Automate, that's another option (see here for more information about important changes due "this quarter" - I'm not sure if they're released yet). If you've not used any of these, your best bet might be:
Configure an Incoming Webhook
Send a Connector Card with a "Post" button
Set the POST url to be your AWS Lambda

Resources