Actions57
- Card Actions
- Card Builder Actions
- Channel Actions
- Chat Actions
- Message Actions
- Analyze Reactions
- Delete
- Delta (All Chats)
- Export All Messages (Metered)
- Export Retained Messages (Metered)
- Generate Thumbnail
- Get
- Get Many
- Get Pinned Messages
- Get Reaction Analytics
- List Messages
- List Replies
- Monitor Upload
- Pin Message
- Pin Channel Message
- Process File
- Reply
- Reply with Attachment
- Send
- Send and Wait
- Send File Link
- Send with Attachment
- Set Reaction
- Soft Delete
- Undo Delete
- Unpin Message
- Unpin Channel Message
- Unset Reaction
- Update
- Upload to OneDrive
- Subscriptions Actions
- Team Actions
- User Actions
Message → Undo Delete
AI-generatedSummary
Restore a soft-deleted message in a Teams chat or channel using Microsoft Graph. Select the recipient type and provide the message ID plus the chat ID, or the team ID and channel ID, to identify the message.
Inputs
- recipientType (required) — Choose Chat (Direct Message) or Channel to select where the message is located.
- chatId (required) — ID of the chat containing the message; used when recipient type is Chat.
- messageId (required) — ID of the soft-deleted message to restore.
- teamId (required) — ID of the team containing the channel; used when recipient type is Channel.
- channelId (required) — ID of the channel containing the message; used when recipient type is Channel.
Output shape
A single item containing the API response for the restore operation.
The operation calls Microsoft Graph to undo the soft deletion. The response may be empty if Graph returns no content.