Count hosted content in a message
One step with Microsoft Outlook. We can help you get access.
Look something up
Count hosted content in a message
with Microsoft Outlook
Works with AI assistants
Use Microsoft Outlook: its OData Service for namespace microsoft.graph Groups.team API lets you count hosted content in a message in a single step (GET /groups/{group-id}/team/channels/{channel-id}/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 does a Teams message have?
- Can I count hosted content in a channel message matching a filter?
Say it to your AI assistant
- Count hosted content in message {message} of channel {channel} in group {group}.
- Count hosted attachments in channel message {message} in group {group}, channel {channel} matching {filter}.
For your developer
GET /groups/{group-id}/team/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/$count in OData Service for namespace microsoft.graph Groups.team API. Full spec on APIs.io.