Hi,
I though I'd start off describing how the flow is suppoed to work. We have a for that we send to new customers, and sometimes existing customers, I want to use a flow that is triggered by a new form response, flow checks Dynamics for existing records (Contact) using Email addresses. If the Contact exists, flow will post an adaptive card to a channel and wait for a response. When the adaptive card is Submitted, then Dynamics objects will be updated or updated depending on what the user chooses.
The issue:
When I add dynamics data from forms or dynamics to show data that has been inputted, the option to use dynamic content from the adaptive card goes away. I've seen post of other people doing this, so what am I doing wrong?
Adaptive card:
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Contact Does Not Exist in Dynamics",
"size": "ExtraLarge",
"color": "Accent",
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "Name:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "",
"id": "correctName"
},
{
"type": "Input.Text",
"placeholder": "Name",
"id": "createName"
},
{
"type": "TextBlock",
"text": "Title:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "x",
"id": "correctTitle"
},
{
"type": "Input.Text",
"placeholder": "Job Title",
"id": "createTitle"
},
{
"type": "TextBlock",
"size": "Large",
"color": "Accent",
"text": "Role:"
},
{
"type": "TextBlock",
"text": "x",
"id": "correctRole"
},
{
"type": "TextBlock",
"text": "Emial Address:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "x",
"id": "correctEmail"
},
{
"type": "Input.Text",
"placeholder": "Email Address",
"id": "createEmail"
},
{
"type": "TextBlock",
"text": "Business Phone:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "x",
"id": "correctBusinessPhone"
},
{
"type": "Input.Text",
"placeholder": "Business Phone",
"id": "createBusinessPhone"
},
{
"type": "TextBlock",
"text": "Mobile Phone:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "x",
"id": "correctMobile"
},
{
"type": "Input.Text",
"placeholder": "Mobile Phone",
"id": "createMobilePhone"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
@Anonymous @Adaptivecards
Hi @samhef,
It seems like a bug that if add dynamic content into the adaptive card, these dynamic content get from Post an adaptive card action will disappear.
As a workaround, you could remove these dynamic content temporarily, after appending them into the next action, add these dynamic content back.
Or you could use Parse JSON to parsing the output of Post an adaptive card action, for example:
Here is a blog about how to handing JSON in MS Flow:
https://spmaestro.com/handling-json-in-microsoft-flow/
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-litu-msft,
Yes that's correct, but only when i try to do this for example:
"type": "TextBlock",
"text": "Name:",
"size": "Large",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "@{body('Get_response_details')?['rf664737307d2488d7f15235fc9a']} @{body('Get_response_details')?['r09c532c99fcdc89e3158ca51f2c0']}",
"id": "correctName"
},
I'm trying to add dynamics content from the form into the adaptive card, then when a user has submitted the adaptive card I want to save that new dynamics content to Dynamics.
So if I remove the dynamics content I added to the Adaptive Card then I can see the Adaptive card dynamic content.
Thanks,
Sam
Hi @samhef,
Do you mean these dynamic content as below are not appear?
If so, you could add a Compose action to accept these dynamic content.
If not, could you please share the tutorial you learned, and give us more details about your situation?
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.