
Announcements
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.
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:
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-xxxx-9785a9d6c706' 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,