cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Clyde
New Member

onSuccess email back to originator after managers review

Hi,

I have created a power apps self assessment form for a computer user. On submit it;

  • Populates SharePoint list - all good
  • onSuccess sends an email to their manager Office365Outlook.SendEmailV2(Office365Users.ManagerV2(User().Email).mail - with a deep link to a details view of the form - all good
  • Manager reviews and adds managers comments and on submit;
    • updates SharePoint list - all good
    • on success, I want it to send an email back to the originating User().Email, I've tried Last.Submit, but that doesn't work 😞

What do I need to put Office365Outlook.SendEmailV2(????

thanks

Clyde

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @Clyde,

When created new item in SharePoint list, there is a default column called “Created By”, which will log the created user. You can send email back to the user shown in this column.

 

If manager has a separate detailed screen for review(or you have just one detailed screen, only manager can access this screen), you can try below method to send email back.

 

If there is the “Created by” field inside your detailed form, you can directly try this formula:

Office365Outlook.SendEmailV2(DataCardValue13.Selected.Email,"Subject here", "body here")

v-albai-msft_0-1620961233904.png

 

If “Created by” field is not show in your detailed form, you need to lookup this record in your list using a unique field like “ID”(first you need to display this unique column inside your form. If your Title column is unique, you can also use Title to find this record from your list):

Office365Outlook.SendEmailV2(LookUp(list10,ID=DataCardValue11.Text).'Created By'.Email,"Subject here", "body here")

v-albai-msft_1-1620961233909.png

 

Best regards,

Allen

View solution in original post

1 REPLY 1
v-albai-msft
Community Support
Community Support

Hi @Clyde,

When created new item in SharePoint list, there is a default column called “Created By”, which will log the created user. You can send email back to the user shown in this column.

 

If manager has a separate detailed screen for review(or you have just one detailed screen, only manager can access this screen), you can try below method to send email back.

 

If there is the “Created by” field inside your detailed form, you can directly try this formula:

Office365Outlook.SendEmailV2(DataCardValue13.Selected.Email,"Subject here", "body here")

v-albai-msft_0-1620961233904.png

 

If “Created by” field is not show in your detailed form, you need to lookup this record in your list using a unique field like “ID”(first you need to display this unique column inside your form. If your Title column is unique, you can also use Title to find this record from your list):

Office365Outlook.SendEmailV2(LookUp(list10,ID=DataCardValue11.Text).'Created By'.Email,"Subject here", "body here")

v-albai-msft_1-1620961233909.png

 

Best regards,

Allen

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.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,453)