Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Passing Data between Forms, Adaptive Cards and Dynamics in Flow

(0) ShareShare
ReportReport
Posted on by 11

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 

  • Verified answer
    v-litu-msft Profile Picture
    v-litu-msft on at
    Re: Passing Data between Forms, Adaptive Cards and Dynamics in Flow

    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:

    Annotation 2020-07-07 174327.jpg

    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.

  • samhef Profile Picture
    samhef 11 on at
    Re: Passing Data between Forms, Adaptive Cards and Dynamics in Flow

    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

  • v-litu-msft Profile Picture
    v-litu-msft on at
    Re: Passing Data between Forms, Adaptive Cards and Dynamics in Flow

    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?
    Annotation 2020-07-03 143030.jpg

     

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics