cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate V
Advocate V

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Advocate V
Advocate V

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (10,807)