cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Collector
Kudo Collector

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

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

3 REPLIES 3
Community Support
Community Support

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

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

@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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (34,401)