-1

I'd like to get a call to my API from Teams when a new project is created. Something like this one but the other way around.

When a user creates a new project in Teams, I need to get notified about that and learn the ID of the creator and the project itself, possibly with some extra parameters.

When I google that issue, I only get info on the notifications in the GUI and questions on how to programmatically create the project from the custom application. I'm new to how Teams work and may be missing something obvious, though. What terms should I aim for to get more info? I've seen some suggestions on relying on a bot but I wish my integration to be automatic, not relying on user input (other than creating the new project/team).

Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438

1 Answers1

1

I don't think there's a way to have Teams tell you this, you might need to go the other way around and poll the Graph API periodically. There is an operation to return all Teams, but be sure to request the Created Date and match it against your polling interval.

Hilton Giesenow
  • 9,809
  • 2
  • 10
  • 24
  • Does the same hold for additions of users to a team? And, consequently, removals? – Konrad Viltersten Dec 11 '22 at 18:41
  • I've been looking more and there's a notification resource that I think will indeed give you new Team creation, as well as all the other things (users, channels etc.). See https://learn.microsoft.com/en-us/graph/teams-change-notification-in-microsoft-teams-overview?view=graph-rest-1.0 – Hilton Giesenow Dec 11 '22 at 19:29
  • It's waaay too late for my brains now. But tomorrow, I'll poke around at the links you provided. I checked a quicky just now and I see mentions suggesting that it's possible to subscribe to the changes, hence react to them as they occur. The best would be a how-to-guide and I hope there's something like that among the links. Thanks. – Konrad Viltersten Dec 11 '22 at 19:57