web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Rows from SQL and ...
Power Automate
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

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    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      

        

  • schuess3 Profile Picture
    353 on at

    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

  • virakones Profile Picture
    406 on at

    @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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard