capabilities.work

Count hosted content in a primary channel message

One step with Microsoft Outlook. We can help you get access.

Look something up

Count hosted content in a primary channel message

Works with AI assistants

Use Microsoft Outlook: its OData Service for namespace microsoft.graph Groups.team API lets you count hosted content in a primary channel message in a single step (GET /groups/{group-id}/team/primaryChannel/messages/{chatMessage-id}/hostedContents/$count). Microsoft Outlook also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How many hosted attachments are in a primary channel message?
  • Can I count only the primary channel message attachments matching a filter?
Say it to your AI assistant
  • Count hosted attachments in primary channel message {message} on team {group}.
  • Count primary channel message {message} attachments in group {group} matching {filter}.
For your developer

GET /groups/{group-id}/team/primaryChannel/messages/{chatMessage-id}/hostedContents/$count in OData Service for namespace microsoft.graph Groups.team API. Full spec on APIs.io.