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 Users.chat API lets you count hosted content in a message in a single step (GET /users/{user-id}/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 in a chat message?
- Can I count the attachments inside one message?
Say it to your AI assistant
- Count hosted content in message {message} of chat {chat} for user {user}.
- Tell me how many hosted files message {message} in chat {chat} of user {user} has.
For your developer
GET /users/{user-id}/chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count in OData Service for namespace microsoft.graph Users.chat API. Full spec on APIs.io.