How to send adaptive card templates with Graph API ?

BERKAY ŞAHİN 20 Reputation points

Hi. I am trying to send adaptive card to a chat with graph api and i am using .net core web api. I want to try with different adaptive card. This question works but when i select template card from these adaptive cards have no id but the card which in first link has an id . When i tried to send without id it gives me an error. Can i send it without an id or how can i find their ids.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
8,716 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
4,024 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,016 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gopinath Chennamadhavuni 2,426 Reputation points


    Hope you are doing well.

    Attachment's ID in Adaptive card can be a new randomly generated GUID and must be unique. However, the attachment's ID must be the same in the body and attachments elements. ID is required when sending a card as a message.

    I have executed the same example provided at: with my own randomly generated ID in GUID format. Card message has been successfully posted on Team's Channel. Please find the below screen shot.

    Reference link:



    Please check and validate the same from your end.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful