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

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

Nogueira1306
Community Champion
Community Champion

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

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

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

Nogueira1306
Community Champion
Community Champion

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?

Nogueira1306
Community Champion
Community Champion

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)

Nogueira1306
Community Champion
Community Champion

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?

Nogueira1306
Community Champion
Community Champion

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,060)