Count hosted content in a chat message
One step with Microsoft Outlook. We can help you get access.
Look something up
Count hosted content in a chat message
with Microsoft Outlook
Works with AI assistants
Use Microsoft Outlook: its OData Service for namespace microsoft.graph Me.chat API lets you count hosted content in a chat message in a single step (GET /me/chats/{chat-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 files are attached to a chat message?
- Can I get just the number of hosted attachments?
Say it to your AI assistant
- Count hosted content in message {message_id} of chat {chat_id}.
- Tell me how many hosted files chat message {message_id} in chat {chat_id} has.
For your developer
GET /me/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count in OData Service for namespace microsoft.graph Me.chat API. Full spec on APIs.io.