navicore / teams-notification-resource

for Concourse CI notifications on Microsoft Teams
MIT License
32 stars 34 forks source link

Integration with Teams workflows replacing deprecated incoming webhooks #54

Open drochgenius opened 1 month ago

drochgenius commented 1 month ago

I am trying to use this resource to notify to a teams workflows web_hook, but it looks like the API is different from the deprecated incoming webhooks.

https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/

I get this error:

ExpressionEvaluationFailed. The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.

Is there any plans to add support for the new Teams workflows that will replace incoming webhooks this fall? If not, do you know of any other ConcourseCI resource I could use?

navicore commented 1 month ago

I had planed to migrate to the new URL before end of year per that notice. Migrating to the new API is uncertain - depends on level of effort. I welcome PRs.

I'll look more into this this week and report back here.

navicore commented 1 month ago

update: Hopefully someone relying on this connector will contribute a Teams Workflow implementation or start a new project we can direct people to. I'm setting the "help wanted" tag on this issue.

I'll update the README.md as well with the msft announcement link. While I'm sure it won't be hard to implement - I'm not actively using this connector and worry I won't get all the use cases covered.