You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/beta/api/chatmessage-get.md
+98-2Lines changed: 98 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Don't supply a request body for this method.
73
73
74
74
## Response
75
75
76
-
If successful, this method returns a `200 OK` response code and a [chatmessage](../resources/chatmessage.md) object in the response body.
76
+
If successful, this method returns a `200 OK` response code and a [chatMessage](../resources/chatmessage.md) object in the response body.
77
77
78
78
## Examples
79
79
@@ -589,7 +589,7 @@ GET https://graph.microsoft.com/beta/chats/19:80a7ff67c0ef43c19d88a7638be436b1@t
589
589
590
590
#### Response
591
591
592
-
The following example shows the response. The message body contains an @mentionfor everyone in a group chat that is represented by the `<at></at>` tag. The **conversationIdentityType** property is set to `chat` in the **conversation** identity of the **mentioned** object.
592
+
The following example shows the response. The message body contains `<at></at>` tags for each @mentionof everyone in a group chat. The **conversationIdentityType** property is set to `chat` in the **conversation** identity of the **mentioned** object.
GET https://graph.microsoft.com/beta/chats/19:e2ed97baac8e4bffbb91299a38996790@thread.v2/messages/1732043970539
795
+
```
796
+
797
+
798
+
799
+
#### Response
800
+
801
+
The following example shows the response. The message body contains two attachments. The value of the **contentType** property of the Loop component is `application/vnd.microsoft.card.fluidEmbedCard`, and the value of the **contentType** property of the placeholder card is `application/vnd.microsoft.card.codesnippet`.
802
+
803
+
> **Note** - The **contentUrl** and **content** properties for a placeholder card don't have values.
"@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET chats('<key>')/messages('<key>')?$select=attachments,body",
Copy file name to clipboardExpand all lines: api-reference/beta/resources/chatmessageattachment.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ An entity of type **chatMessageAttachment** is returned as part of the [Get chan
22
22
| Property | Type |Description|
23
23
|:---------------|:--------|:----------|
24
24
|content|string|The content of the attachment. If the attachment is a [rich card](/microsoftteams/platform/task-modules-and-cards/cards/cards-reference), set the property to the rich card object. This property and **contentUrl** are mutually exclusive.|
25
-
|contentType| string | The media type of the content attachment. The possible values are: <br><ul><li>`reference`: The attachment is a link to another file. Populate the <b>contentURL</b> with the link to the object.</li><li>`forwardedMessageReference`: The attachment is a reference to a forwarded message. Populate the <b>content</b> with the original message context.</li><li>Any <b>contentType</b> that is supported by the Bot Framework's [Attachment object](/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?#attachment-object).</li><li>`application/vnd.microsoft.card.codesnippet`: A code snippet. </li><li>`application/vnd.microsoft.card.announcement`: An announcement header. </li>|
25
+
|contentType| string | The media type of the content attachment. The possible values are: <br><ul><li>`reference`: The attachment is a link to another file. Populate the <b>contentURL</b> with the link to the object.</li><li>`forwardedMessageReference`: The attachment is a reference to a forwarded message. Populate the <b>content</b> with the original message context.</li><li>Any <b>contentType</b> that is supported by the Bot Framework's [Attachment object](/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?#attachment-object).</li><li>`application/vnd.microsoft.card.codesnippet`: Either a code snippet or place holder. </li><li>`application/vnd.microsoft.card.announcement`: An announcement header. </li><li>`application/vnd.microsoft.card.fluidEmbedCard`: A Microsoft Loop component. </li>|
26
26
|contentUrl|string|The URL for the content of the attachment. |
27
27
|id|string| Read-only. The unique ID of the attachment.|
"Description": "Added Microsoft Loop components as two types of attachments, a Loop component and a place holder. New **contentType** properties `application/vnd.microsoft.card.fluidEmbedCard` and `application/vnd.microsoft.card.codesnippet` are in the [chatMessageAttachment](https://learn.microsoft.com/en-us/graph/api/resources/chatmessageattachment?view=graph-rest-1.0) resource.",
Copy file name to clipboardExpand all lines: concepts/teams-messaging-overview.md
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,9 @@ The [chatMessageAttachment](/graph/api/resources/chatmessageattachment) resource
27
27
28
28
Cards represent visual elements backed by a predefined schema. Teams supports the cards defined by the [Bot Framework](/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0&preserve-view=true#attachment-object) in addition to the following card types:
29
29
30
-
- Code snippet - Set **contentType** to `application/vnd.microsoft.card.codesnippet`
30
+
- Code snippet or place holder - Set **contentType** to `application/vnd.microsoft.card.codesnippet`
31
31
- Announcement card - Set **contentType** set to `application/vnd.microsoft.card.announcement`
32
+
- Microsoft Loop component card - Set **contentType** set to `application/vnd.microsoft.card.fluidEmbedCard`
32
33
33
34
For cards, the **contentType** property is set to the type of card, and the **content** property contains the serialized json for the card.
34
35
@@ -70,6 +71,31 @@ The following example shows the schema for an adaptive card attachment when the
70
71
71
72
> **Note:** Microsoft Graph only supports cards that have the **OpenUrl** action set. Other actions like **ShowCard** aren't supported. Microsoft Graph does allow messages posted by bots that have other actions in them to be read.
72
73
74
+
The following example shows the schema for a Loop component as two attachments.
When an [attachment](/graph/api/resources/chatmessageattachment) object refers to a file, it contains information about the file, including the link to open the file. The file itself is located in an accessible store like SharePoint. When a **chatMessage** has an attachment of type file, the value of the **contentType** property on the [attachment](/graph/api/resources/chatmessageattachment) resource is set to `reference`, and the **contentUrl** property contains the file URL.
Copy file name to clipboardExpand all lines: concepts/whats-new-overview.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,10 @@ Use the new mailbox import and export APIs in Microsoft Graph to build solutions
80
80
81
81
Use the [teamsChannel](/graph/api/resources/planner-overview?view=graph-rest-beta&preserve-view=true#container-type-teams-channel) container type to create plans in shared channels in Microsoft Teams.
82
82
83
+
### Teamwork and communications | Messaging
84
+
85
+
-[Get](/graph/api/chatmessage-get#example-7-get-a-chat-message-with-a-loop-component) a chat message that includes a Microsoft Loop component as two attachments.
0 commit comments