I am customizing the Shoutouts Powerapp that MS provides. It is designed to send a shoutout to the receiver, and their manager from Active Directory. I want to hardcode in our Human Resources email into the process so she gets notified when someone sends a shoutout. how would I do this? I imagine it would just be as simple as adding something here on the confirm message screen button.
Solved! Go to Solution.
Hi @jestes
The email is sent from the Confirmation screen and not on click of the button
On the OnVisible property of the SendConfirmationScreen
Add your hardcoded email(s) as shown below
// Set email recipients. If shoutout recipient isn't internal, don't search for or include their manager
Set(_emailRecipients, _selectedUser.UserPrincipalName & ";hardcodedemail" &
If(_selectedUser.isInternal || Lower(_selectedUser.CompanyName) = Lower(_myProfile.CompanyName),
";" & Office365Users.Manager(_selectedUser.UserPrincipalName).UserPrincipalName
)
)
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Are you sending the email using the Office 365 Outlook connector?
If so, add a CC line and hard-code in the HR email.
https://docs.microsoft.com/en-us/connectors/office365/#send-an-email-(v2)
Hi @jestes
The email is sent from the Confirmation screen and not on click of the button
On the OnVisible property of the SendConfirmationScreen
Add your hardcoded email(s) as shown below
// Set email recipients. If shoutout recipient isn't internal, don't search for or include their manager
Set(_emailRecipients, _selectedUser.UserPrincipalName & ";hardcodedemail" &
If(_selectedUser.isInternal || Lower(_selectedUser.CompanyName) = Lower(_myProfile.CompanyName),
";" & Office365Users.Manager(_selectedUser.UserPrincipalName).UserPrincipalName
)
)
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.