cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benhaguenz
Regular 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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (2,990)