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

Include EditForm link for particular item in email - SharePoint

I have a below powerapps form with SharePoint as a datasource

1. NewForm

2. EditForm,

3. ViewForm

 

On submit button click, I would like to send email to my approver, who is selected in dropdown.

 

May I know, how to include the EditForm link for that list item in email, similar like we do in SharePoint designer ?

 

Note: I am just using SharePoint list to store the data. Its a separate powerapp with datasource sharepoint.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Include EditForm link for particular item in email - SharePoint

Hi @Kumar9024021 ,

Do you create a standalone canvas app based on your SP list data source or customize a form in your SP List?

Do you want the approver open your Edit form to review the submitted record via pressing the deep link within your Email body?

 

If you customize a form in your SP List using PowerApps, I afraid that there is no way to achieve your needs.

 

If you created a standalone canvas app based on your SP List, I think the PowerApps could achieve your needs. Please check and see if the solution I provided within the following threads would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Embedded-link-to-a-Sharepoint-List-...

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Editing-a-record-from-a-flow-powera...

 

On your side, you could consider send an email from your app. Please consider take a try with the following workaround:

Set the OnSuccess property of the Edit form to following:

Office365Outlook.SendEmail(
                           EditFrom1.LastSubmit.Approver.Email, // I assume that you use a Person column (called "Approver") to store the approver
                           "Approvel Reuqest From " & EditForm1.LastSubmit.'Created By'.DisplayName, 
                           "https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&ID=" & EditForm.LastSubmit.ID
)

Note: The 'https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxx...' represents the Web URL Link of your canvas app, on your side, you should replace it with the Web Url of your own canvas app.

 

Set the OnStart property of App to following formula:

Set(ItemID, Param("ID"));
If(
   !IsBlank(ItemsID),
   Navigate(EditScreen)
)

Within your Edit screen, set the Item property of the Edit form to following:

If(
   !IsBlank(ItemID),
   LookUp('YourSPList', ID = ItemID),
   BrowseGallery1.Selected
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
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

1 REPLY 1
Community Support Team
Community Support Team

Re: Include EditForm link for particular item in email - SharePoint

Hi @Kumar9024021 ,

Do you create a standalone canvas app based on your SP list data source or customize a form in your SP List?

Do you want the approver open your Edit form to review the submitted record via pressing the deep link within your Email body?

 

If you customize a form in your SP List using PowerApps, I afraid that there is no way to achieve your needs.

 

If you created a standalone canvas app based on your SP List, I think the PowerApps could achieve your needs. Please check and see if the solution I provided within the following threads would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Embedded-link-to-a-Sharepoint-List-...

https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Editing-a-record-from-a-flow-powera...

 

On your side, you could consider send an email from your app. Please consider take a try with the following workaround:

Set the OnSuccess property of the Edit form to following:

Office365Outlook.SendEmail(
                           EditFrom1.LastSubmit.Approver.Email, // I assume that you use a Person column (called "Approver") to store the approver
                           "Approvel Reuqest From " & EditForm1.LastSubmit.'Created By'.DisplayName, 
                           "https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&ID=" & EditForm.LastSubmit.ID
)

Note: The 'https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxx...' represents the Web URL Link of your canvas app, on your side, you should replace it with the Web Url of your own canvas app.

 

Set the OnStart property of App to following formula:

Set(ItemID, Param("ID"));
If(
   !IsBlank(ItemsID),
   Navigate(EditScreen)
)

Within your Edit screen, set the Item property of the Edit form to following:

If(
   !IsBlank(ItemID),
   LookUp('YourSPList', ID = ItemID),
   BrowseGallery1.Selected
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,721)