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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (18,027)