cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benhaguenz
Frequent Visitor

Post adaptive card removing back slash from JSON

I have a custom connector that writes a JSON field into the text field of a textblock inside a Post adaptive card in chat or channel action. The JSON field is 

 "alt""2048: \"Great news for Maine—we're once again an independent state!!! Thanks, @Unicode, for ruling in our favor and sending troops to end New Hampshire's annexation. 🙏🚁🎖️\""
This appears in the card as "text": "@{outputs('Get_a_specified_image')?['body/alt']}" which is converted to "text": "2048: "Great news for Maine—we're once again an independent state!!! Thanks, @Unicode, for ruling in our favor and sending troops to end New Hampshire's annexation. 🙏🚁🎖️"".
Because the back slashes have been removed this is now invalid JSON and so the flow fails. 
The source of the JSON for the connector is https://xkcd.com/1953/info.0.json.
Apologies if this appears twice, it appeared to crash last time I posted it.
       
0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,842)