0

I am creating the following flow through Power Automate on TEAMS to get the details of a request from a client on Channel "Requests" and to render those data as a post message in Channel "General":

  • Trigger: Keyword in Teams Channel "Requests" From that trigger,
  • Post an adaptive card Card1 in Teams Channel "Requests" & Wait for Response (here, the user needs to fill up a few data, among which a URL Link - Card1 is like a short form) Post a message in Teams Channel "General" with data collected from Card1

Within the Card1, I have a field "URL" where I would like the user to insert any link he/she would like to add information. But when I am trying to retrieve the data and post the message in Teams Channel, this link is not clickable. This is the part I am struggling with: @{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/link']} How can I do? Thank you in advance for your help.

I am pasting below the code for Adaptive Card 1 & Message

Post an adaptive card and wait for answer (Card1)

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "Request to \nCreative Studio FBP",
            "wrap": true,
            "size": "Medium",
            "weight": "Bolder"
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "ImageSet",
                            "images": [
                                {
                                    "type": "Image",
                                    "size": "Medium",
                                    "url": "https://www.planetware.com/photos-large/JPN/japan-mt-fuji-and-cherry-blossoms.jpg",
                                    "spacing": "Small"
                                }
                            ],
                            "height": "stretch",
                            "spacing": "Small"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "TextBlock",
                            "wrap": true,
                            "size": "Small",
                            "text": "Assign To:"
                        }
                    ],
                    "spacing": "Small"
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Input.ChoiceSet",
                            "choices": [
                                {
                                    "title": "Name 1",
                                    "value": "Name 1"
                                },
                                {
                                    "title": "Name 2",
                                    "value": "Name 2"
                                },
                                {
                                    "title": "Name 3",
                                    "value": "Name 3"
                                }
                            ],
                            "placeholder": "Select a person",
                            "style": "expanded",
                            "wrap": true,
                            "id": "AssigneeName",
                            "spacing": "Small"
                        }
                    ],
                    "spacing": "Small"
                }
            ]
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Task Title:",
                            "size": "Small",
                            "spacing": "Small"
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Input.Text",
                            "id": "WorkItem",
                            "placeholder": "Indicate the title of your request",
                            "spacing": "Small"
                        }
                    ]
                }
            ],
            "spacing": "Small"
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Due Date:",
                            "size": "Small",
                            "spacing": "Small",
                            "wrap": true
                        }
                    ],
                    "spacing": "Small"
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Input.Date",
                            "id": "DueDate",
                            "spacing": "Small"
                        }
                    ]
                }
            ],
            "spacing": "Small"
        },
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "width": "auto",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Launch Date of Campaign:",
                            "size": "Small",
                            "spacing": "Small",
                            "height": "stretch",
                            "wrap": true
                        }
                    ]
                },
                {
                    "type": "Column",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "Input.Date",
                            "id": "LaunchDate",
                            "spacing": "Small"
                        }
                    ]
                }
            ],
            "spacing": "Small"
        },
        {
            "type": "TextBlock",
            "text": "Description:",
            "wrap": true,
            "size": "Small",
            "spacing": "Small"
        },
        {
            "type": "Input.Text",
            "placeholder": "Describe your request",
            "id": "Description",
            "isMultiline": true,
            "spacing": "None"
        },
        {
            "type": "TextBlock",
            "text": "URL:",
            "wrap": true,
            "size": "Small",
            "spacing": "Small"
        },
        {
            "type": "Input.Text",
            "placeholder": "Insert any link to add any information",
            "style": "Url",
            "id": "Link",
            "spacing": "None"
        },
        {
            "type": "TextBlock",
            "text": "Notes:",
            "wrap": true,
            "size": "Small",
            "spacing": "Small"
        },
        {
            "type": "Input.Text",
            "placeholder": "Add comments if necessary",
            "id": "Notes",
            "isMultiline": true,
            "spacing": "None"
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.Submit",
                    "title": "Submit the Request",
                    "id": "Submit",
                    "style": "destructive"
                }
            ],
            "height": "stretch"
        }
    ],
    "minHeight": "0px"
}

Post message in a channel:

<p>From: @{outputs('Get_my_profile_(V2)')?['body/displayName']}             <span style="color: rgb(204,204,204)"></span><span style="color: rgb(
204,204,204)">@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/responder/objectId']}</span><span style="color: rgb(204,204,204)"></span> <br>
To:<span style="color: rgb(85,57,130)"> </span><span style="color: rgb(85,57,130)"><strong></strong></span><span style="color: rgb(85,57,130)"><strong>@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/assigneeName']}</strong></span><span style="color: rgb(85,57,130)"><strong></strong></span><br>
<span style="font-size: 14px"><strong></strong></span><span style="font-size: 14px"><strong>@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/workItem']}</strong></span><span style="font-size: 14px"><strong> 〆 </strong></span><span style="font-size: 14px"><strong>@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/dueDate']}</strong></span><span style="font-size: 14px"><strong></strong></span><strong> </strong>(Launch date: @{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/launchDate']})<br>
@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/description']}<br>
<a href=""></a>@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/link']}<a href=""></a><br>
<br>
@{outputs('Post_adaptive_card_and_wait_for_a_response')?['body/data/notes']}&nbsp;&nbsp;</p>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.