cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KJC
Helper I
Helper I

Power Apps Approval

Hi,

 

Would anyone be able to help?

 

I have a Power App connected to a SharePoint List. When someone submits a new item it updates the SharePoint List and generates an approval Flow.  This works well but I cannot figure out  how I can add a link to the specific item being approved so the approver can click on the linked item from the email (see attached), and see details of what they are approving. 

 

Does anyone know how I can do this. Sorry, 

 

Many thanks

Kieran

2 ACCEPTED SOLUTIONS

Accepted Solutions
Nogueira1306
Super User
Super User

Assuming you use Teams Approval and the trigger is when you create a SP Item, you have a field that is called "link to item"

Add that field to the approval

 

It will work. 

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

View solution in original post

Which value are you sending?
The compose_inputs must be Form2.LastSubmit.ID

 

The only step missing is this..

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

View solution in original post

12 REPLIES 12
Nogueira1306
Super User
Super User

Assuming you use Teams Approval and the trigger is when you create a SP Item, you have a field that is called "link to item"

Add that field to the approval

 

It will work. 

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

Hi Gonçalo,

 

Thank you for the reply.

 

The trigger comes from PowerApps. Once the submit button is pressed it updates SharePoint List and runs the Flow. Is not possible to grab the SharePoint item ID this way? I have seen some articles around deep linking, but not sure if I am on the right track.

 

Many thanks

Kieran

Yes, you need to ask that field in the flow and, after that, you get the item with that id

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

Sorry to ask, but I don't suppose you have links to any tutorials or  examples on how to do this?

In flow:

Nogueira1306_0-1637853959431.png

 

In Power apps:

Nogueira1306_1-1637854189532.png

 

I am using that in a Gallery but you use whrn you update the item. Jsut make sure you send the ID the right way

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

Hi,

 

Thank so much for your help, but still could not get it to work. Here is the run command from my PowerApp. Where would I input compose? as think I am adding in wrong place.

 

Sendapprovalandfollowupviaemail.Run("someemail@whoever.org.uk", User().Email, Form2.LastSubmit.ID, Form2.LastSubmit.Title)

So, you are already sending some variables into flow. Ask another one that is the ID.

I always use Compose but you can use on a Initialize a var, for example.

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

This is the bit I'm stuck on. I do not know how to pass it over. Please see flow and run command attached.

 

I asked for the itemLink in my flow, but in my run command in Power Apps, I do not know the syntax to pass that over. Sorry, to ask again but am new and the terminology gets lost me on sometimes. Would you know the syntax to pass over the itemLink?

The problem is the in the flow. You ask the ID to go get the item.

So.

Step 1. Ask Id (you can use the one have: Form3.LastSubmit.ID

Step 2. Add a step "Get item" and add that ID you received on the ID field

Step 3. Add an approval step

Step 4. Add the item link that you get from Get Item step

 

Nogueira1306_0-1637862038985.png

 

 

Like this

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,682)