Home

Flow - Teams : Rich messages based on Forms data (JSON)?

%3CLINGO-SUB%20id%3D%22lingo-sub-242918%22%20slang%3D%22en-US%22%3EFlow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242918%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22lia-message-body-content%22%3E%3CP%3EHey%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20i%20use%20microsoft%20flow%20to%20create%20good%20looking%20posts%20in%20Microsoft%20Teams%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20read%20about%20something%20called%20JSON%20and%20something%20called%20webhooks%20and%20creating%20rich%20cards%20in%20microsoft%20teams.%3C%2FP%3E%3CP%3EHow%20can%20i%20careate%20these%20cards%20with%20predefined%20information.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example.%3C%2FP%3E%3CP%3EI%20have%20a%20form%20that%20i%20now%20use%20flow%20to%20post%20a%20message%20in%20teams%20every%20time%20someone%20fills%20out%20the%20form%20(microsoft%20forms).%3C%2FP%3E%3CP%3EBut%20i%20would%20like%20to%20make%20the%20message%20that%20is%20posted%20in%20teams%20look%20better.%3C%2FP%3E%3CP%3EWith%20a%20JSON%20card....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20do%20i%20need%20to%20do%20this%3F%3C%2FP%3E%3CP%3EI%20have%20googled%20around.%20Finding%20lots%20of%20information...%20but%20it%20is%20a%20bit%20to%20advanced%20for%20me...%20can%20someone%20dumb%20it%20down%3F%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-242918%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-244387%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-244387%22%20slang%3D%22en-US%22%3E%3CP%3EIm%20doing%20exaclty%20as%20you%20describe.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20post%20this%20in%20flow%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%26nbsp%3B%20%22type%22%3A%20%22TextBlock%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22size%22%3A%20%22large%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22text%22%3A%20%22**textblock%201**%22%3CBR%20%2F%3E%7D%2C%7B%3CBR%20%2F%3E%26nbsp%3B%20%22type%22%3A%20%22TextBlock%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22size%22%3A%20%22medium%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%22text%22%3A%20%22**textblock%202**%22%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20i%20get%20an%20error%20and%20can%20not%20save%20the%20flow%3C%2FP%3E%3CP%3Eif%20i%20remove%20one%20textblock%2C%20then%20i%20tall%20works.%3C%2FP%3E%3CP%3EIt%20seems%20i%20can%20not%20have%20two%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20can%20not%20post%20the%20above%20code%20either%20in%20the%20playground%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmessagecardplayground.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmessagecardplayground.azurewebsites.net%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhat%20am%20i%20missing%20to%20make%20the%20code%20work%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-243021%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-243021%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20an%20expert%20at%20JSON%2C%20but%20just%20use%20that%20generator%20I%20sent%20you%2C%20you%20can%20plug%20stuff%20in%20pretty%20easy.%20See%20example%20here%2C%20I%20just%20took%20the%20Medium%20one%2C%20and%20duplicated%20in%20the%20section%20seperated%20by%20comma%20to%20make%20a%20large%20title%20as%20well.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F45001i2DDA8ADDB8EE9BB2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22json.jpg%22%20title%3D%22json.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-243008%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-243008%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20succeeded%20on%20getting%20the%20flow%20to%20work.%20now%20i%20get%20a%20card%20posted%20in%20teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20the%20JSON%20code%20i%20do%20not%20understand.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20code%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3E%22type%22%3A%20%22TextBlock%22%2C%3CBR%20%2F%3E%22size%22%3A%20%22large%22%2C%3CBR%20%2F%3E%22text%22%3A%20%22**test%20title**%22%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eworks%20just%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20how%20do%20i%20add%20another%20section%20that%20is%20not%20set%20to%20be%20%22large%22%3F%3C%2FP%3E%3CP%3EI%20have%20tried%20to%20look%20at%20other%20examples%20but%20it%20seem%20i%20can%20not%20add%20much%20code%20atall%20in%20Flow%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Efor%20example%2C%20how%20do%20i%20add%20a%20large%20title%20and%20then%20a%20subtitle%20and%20then%20some%20normal%20text%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242979%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242979%22%20slang%3D%22en-US%22%3EFollow%20this%20article%2C%20pretty%20sure%20you%20have%20to%20use%20webhook%20to%20use%20JSON%20and%20message%20cards%20etc.%20This%20is%20pretty%20easy%20to%20follow%20and%20do%2C%20you%20will%20also%20get%20notifications%20that%20work%20on%20the%20channel%20as%20well%20this%20method.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.ryanschouten.com%2F2017%2F02%2F06%2Fpost-to-microsoft-team-from-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.ryanschouten.com%2F2017%2F02%2F06%2Fpost-to-microsoft-team-from-flow%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHere%20is%20the%20card%20playground%20I%20was%20talking%20about%20in%20the%20beginning%20it's%20nice%20to%20generate%20some%20simple%20cards..%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmessagecardplayground.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmessagecardplayground.azurewebsites.net%2F%3C%2FA%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242971%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242971%22%20slang%3D%22en-US%22%3E%3CP%3Eim%20so%20confused%20about%20this.%3C%2FP%3E%3CP%3Ei%20need%20some%20very%20simple%20flow%20example%20that%20post%20a%20JSON%20card%20into%20teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20my%20googling%20and%20tries%20are%20not%20giving%20any%20result.%3C%2FP%3E%3CP%3EI%20get%20a%20bunch%20of%20different%20erros%20all%20the%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20my%20latest%20try%2C%20if%20you%20have%20any%20input%20to%20give%20im%20very%20happy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESCREENSHOT1%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgtyb%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgtyb%3C%2FA%3E%3C%2FP%3E%3CP%3ESCREEN2%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgu3y%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgu3y%3C%2FA%3E%3C%2FP%3E%3CP%3Escreen3%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgu7m%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgu7m%3C%2FA%3E%3C%2FP%3E%3CP%3Escreen%204%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgub8%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgub8%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242941%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242941%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20for%20many%20good%20ideas.%3C%2FP%3E%3CP%3Ei%20need%20to%20first%20make%20sure%20i%20get%20the%20posting%20to%20work%20before%20modifying%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecurrently%20i%20do%20not%20get%20it%20to%20work%3C%2FP%3E%3CP%3Escreenshot%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgily%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgily%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20just%20postes%20the%20JSON%20code%20to%20teams%3C%2FP%3E%3CP%3ESo%20no%20card%20being%20created.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242939%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242939%22%20slang%3D%22en-US%22%3EAnother%20good%20resource%20for%20this%20if%20the%20flow%20still%20isn't%20posting%20notifications.%20Kind%20of%20touches%20on%20that%2C%20it's%20what%20I%20used%20when%20I%20was%20messing%20with%20this%2C%20was%20pretty%20easy%20to%20create%20a%20Webhook%20to%20use.%3CBR%20%2F%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%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242938%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242938%22%20slang%3D%22en-US%22%3EYes.%20However%2C%20unless%20they%20fixed%20it%2C%20unfortunately%20using%20FLow%20to%20post%20a%20message%20in%20Teams%20doesn't%20trigger%20notifications%20%2F%20activity%20bell%20for%20users.%20So%20if%20that's%20a%20requirement%20you%20need%20to%20look%20at%20creating%20a%20web%20hook%2C%20that%20posts%20this%20same%20JSON%20and%20then%20subscribe%20to%20it%20with%20connector%20on%20the%20channel%20you%20want%20them%20to%20go%20into%2C%20that%20will%20give%20you%20notifications.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242935%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242935%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20this%20look%20very%20good.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20where%20do%20i%20paste%20in%20the%20code%20in%20flow%20to%20make%20it%20post%20in%20teams%3C%2FP%3E%3CP%3Ecan%20i%20just%20use%20the%20Teams%20and%20post%20message%20command%20in%20flow%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Escreenshot%3A%20%3CA%20href%3D%22http%3A%2F%2Fprntscr.com%2Fkrgfe1%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fprntscr.com%2Fkrgfe1%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242933%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242933%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20meantime%20here%20is%20a%20good%20reference%20for%20the%20cards%20however%20with%20examples%20you%20can%20use%20and%20just%20plug%20that%20into%20Flow%20and%20add%20in%20the%20dynamic%20fields%20and%20your%20good%20to%20go%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foutlook%2Factionable-messages%2Fmessage-card-reference%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foutlook%2Factionable-messages%2Fmessage-card-reference%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242932%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242932%22%20slang%3D%22en-US%22%3EWell%20I%20take%20that%20back%20they%20changed%20it%2C%20I%20need%20to%20find%20if%20it's%20still%20available%20but%20there%20was%20something%20somewhere%20that%20you%20could%20build%20out%20cards%20via%20UI%20and%20then%20copy%20the%20JSON%2C%20looking%20%3AP.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-242930%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Teams%20%3A%20Rich%20messages%20based%20on%20Forms%20data%20(JSON)%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-242930%22%20slang%3D%22en-US%22%3ESo%20the%20easy%20way%20that%20I%20do%20is%20load%20up%20the%20App%20studio%20editor%20app%20in%20Teams%2C%20then%20inside%20of%20that%20app%20is%20a%20tab%20for%20Card%20Editor%2C%20you%20can%20easily%20generate%20a%20card%20look%20there%20and%20copy%20it%2C%20then%20just%20insert%20your%20dynamic%20data%20to%20get%20a%20good%20looking%20card.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hey

 

How can i use microsoft flow to create good looking posts in Microsoft Teams

 

I have read about something called JSON and something called webhooks and creating rich cards in microsoft teams.

How can i careate these cards with predefined information.

 

For example.

I have a form that i now use flow to post a message in teams every time someone fills out the form (microsoft forms).

But i would like to make the message that is posted in teams look better.

With a JSON card....

 

What do i need to do this?

I have googled around. Finding lots of information... but it is a bit to advanced for me... can someone dumb it down?

 
12 Replies
So the easy way that I do is load up the App studio editor app in Teams, then inside of that app is a tab for Card Editor, you can easily generate a card look there and copy it, then just insert your dynamic data to get a good looking card.
Well I take that back they changed it, I need to find if it's still available but there was something somewhere that you could build out cards via UI and then copy the JSON, looking :P.

In the meantime here is a good reference for the cards however with examples you can use and just plug that into Flow and add in the dynamic fields and your good to go: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference

Thanks, this look very good.

 

But where do i paste in the code in flow to make it post in teams

can i just use the Teams and post message command in flow?

 

screenshot: http://prntscr.com/krgfe1

 

 

Yes. However, unless they fixed it, unfortunately using FLow to post a message in Teams doesn't trigger notifications / activity bell for users. So if that's a requirement you need to look at creating a web hook, that posts this same JSON and then subscribe to it with connector on the channel you want them to go into, that will give you notifications.
Another good resource for this if the flow still isn't posting notifications. Kind of touches on that, it's what I used when I was messing with this, was pretty easy to create a Webhook to use.
https://davidlozzi.com/2018/03/01/posting-to-teams-incoming-webhook-verses-teams-post-message-in-flo...

thanks for many good ideas.

i need to first make sure i get the posting to work before modifying it.

 

currently i do not get it to work

screenshot: http://prntscr.com/krgily

 

this just postes the JSON code to teams

So no card being created.

im so confused about this.

i need some very simple flow example that post a JSON card into teams.

 

All my googling and tries are not giving any result.

I get a bunch of different erros all the time.

 

Here is my latest try, if you have any input to give im very happy.

 

SCREENSHOT1: http://prntscr.com/krgtyb

SCREEN2: http://prntscr.com/krgu3y

screen3: http://prntscr.com/krgu7m

screen 4: http://prntscr.com/krgub8

 

 

Follow this article, pretty sure you have to use webhook to use JSON and message cards etc. This is pretty easy to follow and do, you will also get notifications that work on the channel as well this method.
https://www.ryanschouten.com/2017/02/06/post-to-microsoft-team-from-flow/

Here is the card playground I was talking about in the beginning it's nice to generate some simple cards..
https://messagecardplayground.azurewebsites.net/

I have succeeded on getting the flow to work. now i get a card posted in teams.

 

but the JSON code i do not understand.

 

This code

{
"type": "TextBlock",
"size": "large",
"text": "**test title**"
}

 

works just fine.

 

But how do i add another section that is not set to be "large"?

I have tried to look at other examples but it seem i can not add much code atall in Flow

 

for example, how do i add a large title and then a subtitle and then some normal text?

 

I'm not an expert at JSON, but just use that generator I sent you, you can plug stuff in pretty easy. See example here, I just took the Medium one, and duplicated in the section seperated by comma to make a large title as well. 

json.jpg

Im doing exaclty as you describe.

 

I post this in flow

{
  "type": "TextBlock",
  "size": "large",
  "text": "**textblock 1**"
},{
  "type": "TextBlock",
  "size": "medium",
  "text": "**textblock 2**"
}

 

but i get an error and can not save the flow

if i remove one textblock, then i tall works.

It seems i can not have two?

 

i can not post the above code either in the playground

https://messagecardplayground.azurewebsites.net/

 

what am i missing to make the code work?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies