Is Loop Component Supported in ChatMessageAttachment Format for Teams Message via Microsoft Graph?

Anonymous
2025-07-02T19:39:08+00:00

Hi Team,

I’m working on automating Teams provisioning and sending messages that include Loop components using the Microsoft Graph SDK. I’m trying to embed a Loop component in a Teams message using the application/vnd.microsoft.card.fluidEmbedCard content type.

Is this the correct and supported format for embedding Loop components (Fluid Framework) into a Teams channel message using the Graph API?

If not, is there an updated or recommended way to achieve this?

Also is there any workaround to support loop through message?

Here’s the snippet of my current implementation:

String attachmentId = UUID.randomUUID().toString();

Map loopContent.put("id", "your-loop-id");loopContent.put("type", "fluid");loopContent.put("url", "https://fluid.microsoft.com/embed/your-loop-id");loopContent.put("name", "Loop Demo");loopContent.put("description", "A test Loop component");

ObjectMapper objectMapper = new ObjectMapper();String loopJson = objectMapper.writeValueAsString(loopContent);

ChatMessageAttachment attachment = new ChatMessageAttachment();attachment.setId(attachmentId);attachment.setContentType("application/vnd.microsoft.card.fluidEmbedCard");attachment.setContent(loopJson);

ChatMessage chatMessage = new ChatMessage();ItemBody body = new ItemBody();body.setContent("Here's a Loop component: ");chatMessage.setBody(body);chatMessage.setAttachments(Collections.singletonList(attachment));

ChatMessage result = graphClient.teams().byTeamId(metadata.teamId()).channels().byChannelId(channelInfo.channelId()).messages().post(chatMessage);

Microsoft 365 and Office | Loop | Other
Microsoft 365 and Office | Loop | Other
A collaborative workspace app in Microsoft 365 designed to help teams co-create, stay organized, and work together in real time across apps and devices.

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-07-02T23:39:39+00:00

    Hello Nikitha! Thank you so much for reaching out, I am Harry an Independent Advisor, and I am glad to assist you today with this issue.

    Loop component through Graph API in teams message application/vnd.microsoft.card.fluidEmbedCard is not officially supported via Graph API. Loop components can’t be embedded directly in Teams channel messages programmatically yet. As a workaround you may use a clickable link to the Loop file: <a href="https://fluid.microsoft.com/embed/your-loop-id&... Loop Component</a>

    This won't render inline but works as a reference.

    This only works manually in chat not via API in channels. No GA support yet so watch Microsoft 365 Roadmap for updates.

    Best regards,

    Harry

    0 comments No comments