Skip to content

[BUG] Microsoft Teams - New Channel Message Trigger doesn't work after first message #18767

@JHawk0224

Description

@JHawk0224

Describe the bug
After the changes in #18712, the teams New Channel Message trigger only works on the first message and then fails.

This should be because the listChannelMessages function currently calls the /teams/${teamId}/channels/${channelId}/messages/delta route, which orders messages in ascending order (and additionally no deltaToken is passed in - docs).

I believe the possible fixes are either:

  1. Change the route to /teams/${teamId}/channels/${channelId}/messages (docs) which automatically retrieves messages sorted descending by last modified date
  2. Use deltaToken on the current route appropriately to get new messages

To Reproduce
Steps to reproduce the behavior:

  1. Create New Channel Message trigger
  2. Send a message -> should trigger
  3. Send another message -> fails to trigger

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Ready for PR Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions