Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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 at
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >