cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kumar9024021
Helper V
Helper V

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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (985)