cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
schuess3
Level: Powered On

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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      

    

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

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      

    

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

schuess3
Level: Powered On

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 202 members 6,149 guests
Please welcome our newest community members: