Skip to main content
Community site session details

Community site session details

Session Id : /a/LiFNN7OHQh/sdpt3f4q
Power Automate - Building Flows
Answered

Get Rows from SQL and Add to Details Markdown of Approval ACtion

Like (0) ShareShare
ReportReport
Posted on 11 Jul 2019 19:34:31 by 353

I am just trying to Get Rows from SQL and then get them into the Details section of an Approval.

 

My thought process was 

  1. Get Rows from SQL
  2. Build an Array Variable with the values from 1 column in sql (a text URL)
  3. Manipulate that Array of Items to work with the "Link Markdown" that is allowed in the "Start and wait for an approval" action

I can't figure out how to do that. 

 

2019-07-11_14-32-13.png

  • virakones Profile Picture
    389 on 28 Sep 2020 at 21:18:46
    Re: Get Rows from SQL and Add to Details Markdown of Approval ACtion

    @schuess3 

     

    Did you ever find a solution to putting each item returned on a new line? For example, @v-yamao-msft join formula uses a semi-colon to separate each item.

     

    I would also like to split each item onto it's own line for readability sake

  • schuess3 Profile Picture
    353 on 12 Jul 2019 at 15:39:24
    Re: Get Rows from SQL and Add to Details Markdown of Approval ACtion

    Your solution works! Thank you. 

     

    Follow-up, if i wanted to put each URL on a new line, how might i alter this to accomplish that?

     

    Thanks

    Matt

  • Verified answer
    v-yamao-msft Profile Picture
    on 12 Jul 2019 at 03:10:35
    Re: Get Rows from SQL and Add to Details Markdown of Approval ACtion

    Hi @schuess3 ,

     

    Do you want to add a link in the approval details?

     

    From the doc Use Markdown in Microsoft Flow approval requests # links, we know that HTTP and HTTPS URLs are automatically formatted as links.

     

    I have set up the flow likes below, and the URL works properly.

     

    Initialize an array variable named as Test.

     

    Get rows from the SQL table, a column named “URL” included in the table.

     

    Add Apply to each, and action Append to array within the loop, configure the value field likes below:

    [ColumnName](URL)

     

    Under Apply to each add Compose action with the following link:

    join(variables('Test'),';')

     

    Add Start and wait for an approval action, select Compose output for the Details field.

     

    An image for your reference.

    1.PNG2.PNG

     

    Best regards,

    Mabel      

        

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started