Home

Flow and using JSON to post in MS Teams?

%3CLINGO-SUB%20id%3D%22lingo-sub-250768%22%20slang%3D%22en-US%22%3EFlow%20and%20using%20JSON%20to%20post%20in%20MS%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-250768%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20new%20to%20JSON%20and%20do%20not%20understand%20how%20to%20use%20it%20fully.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20far%20i%20have%20only%20added%20a%20bit%20of%20text%20with%20JSON%20posting%20from%20Flow%20to%20Microsoft%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20all%20i%20get%20to%20work%20is%3C%2FP%3E%3CP%3E%7B%22text%22%3A%22some%20random%20text%22%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20soon%20as%20i%20try%20to%20add%20another%20textblock%20or%20anything%20else%20that%20i%20google.%20Flow%20wont%20accept%20it.%3C%2FP%3E%3CP%3EIs%20there%20limits%20to%20what%20i%20can%20use%20from%20flow%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20the%20app%20builder%20in%20Microsoft%20Teams.%3C%2FP%3E%3CP%3EI%20can%20generate%20this%20code.%3C%2FP%3E%3CP%3EBut%20this%20wont%20work%20atall%20when%20i%20try%20to%20use%20it%20in%20Flow%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%26nbsp%3B%20%22attachments%22%3A%20%5B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22contentType%22%3A%20%22application%2Fvnd.microsoft.card.hero%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22content%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22title%22%3A%20%22some%20title%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22subtitle%22%3A%20%22some%20subtitle%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22text%22%3A%20%22some%20random%20text%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22images%22%3A%20%5B%5D%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22buttons%22%3A%20%5B%5D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%5D%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-250768%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EJson%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-285130%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20and%20using%20JSON%20to%20post%20in%20MS%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-285130%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20want%20to%20send%20action%20cards%20to%20Teams%2C%20the%20only%20way%20is%20to%20create%20an%20incoming%20web%20hook%20in%20teams%20and%20in%20Flow%2C%20use%20the%20HTTP%20action%20to%20post%20data%20to%20that%20webhook.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdavidlozzi.com%2F2018%2F03%2F01%2Fposting-to-teams-incoming-webhook-verses-teams-post-message-in-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdavidlozzi.com%2F2018%2F03%2F01%2Fposting-to-teams-incoming-webhook-verses-teams-post-message-in-flow%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-283975%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20and%20using%20JSON%20to%20post%20in%20MS%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-283975%22%20slang%3D%22en-US%22%3E%3CP%3EBumping%20this%20thread%20back%20up.%3C%2FP%3E%3CP%3EHoping%20someone%20have%20a%20clue%20how%20to%20use%20JSON%20in%20flow%20to%20create%20interactive%20cards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-250866%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20and%20using%20JSON%20to%20post%20in%20MS%20Teams%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-250866%22%20slang%3D%22en-US%22%3E%3CP%3ENoone%20know%20how%20to%20use%20JSON%20in%20Flow.%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20buttons%20and%20other%20things%20with%20the%20code%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

I am new to JSON and do not understand how to use it fully.

 

So far i have only added a bit of text with JSON posting from Flow to Microsoft Teams.

 

But all i get to work is

{"text":"some random text"}

 

As soon as i try to add another textblock or anything else that i google. Flow wont accept it.

Is there limits to what i can use from flow?

 

Using the app builder in Microsoft Teams.

I can generate this code.

But this wont work atall when i try to use it in Flow

 

{
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "title": "some title",
        "subtitle": "some subtitle",
        "text": "some random text",
        "images": [],
        "buttons": []
      }
    }
  ]
}

 

 

3 Replies
Highlighted

Noone know how to use JSON in Flow.

Is it possible to create buttons and other things with the code?

 

Bumping this thread back up.

Hoping someone have a clue how to use JSON in flow to create interactive cards

If you want to send action cards to Teams, the only way is to create an incoming web hook in teams and in Flow, use the HTTP action to post data to that webhook.

 

https://davidlozzi.com/2018/03/01/posting-to-teams-incoming-webhook-verses-teams-post-message-in-flo...

Related Conversations
Teams error code - 6
damnit95 in Office 365 on
4 Replies
Teams adaptive card scaling is off on IOS
FinnHat in Teams Developer on
2 Replies
Sharing a Teams Calendar
Michael Krueger in Microsoft Teams on
17 Replies