web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Holiday / Vacation Req...
Power Automate
Unanswered

Holiday / Vacation Request App

(0) ShareShare
ReportReport
Posted on by

My application displays my email name instead of the user who is submitting the request. I've added people to the sharepoint group but it seems as though my flow isnt grabbing their user names.

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Are you using PowerApps to build the Vocation request, or using Microsoft Flow?

    Could you please share more details about the App (and the flow ) you mentioned here?

     

    If you would like to grab the user name, we could take use of the user() function to get the user name of the current user, then use this as the value input under the flow (under Flow corresponding box choose Ask in PowerApps) you configured.

    Then under PowerApps, specify the corresponding value as:
    User().FullName&"Would apply Vocation"

    For example:

    20.PNG

    Then within PowerApps, the onselect property of the button used to submit the request should be:

    Sendapprovalemailwhenanewitemisadded.Run(
     Office365Users.Manager(User().Email).Mail,
     User().FullName&" Would Apply "&TextInput1.Text&"Days for "&TextInput2.Text)

    21.PNG

     

    This would have the user send the Email with the Details specified within PowerApps, then pass it into Microsoft Flow.

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    on at

    Hi Michael,

     

    Thanks for the response.

     

    I am currently using Sharepoint and Microsoft Flow. I followed this guide: https://flow.microsoft.com/en-us/documentation/modern-approvals/

     

    When I create a new 'Time Off Request', it comes out perfect, the email displays "Time-off Request for Shane Hartigan".

     

    However, when another user going in and submits another request, the email still displays "Time-off Request for Shane Hartigan" instead of "Time-off Request for John Smith".

     

    I followed that guide step by step, I was wondering if this may be an issue that needs to be fixed in the Sharepoint instead of the flow. 

     

    Thanks again!

     

  • NoelYEG Profile Picture
    2 on at

    Hi Shane,

     

    I know this is an old thread, but thought i'd chime in since I am building this exact thing as well.  I believe the reason the email is stating it is coming from "Shane Hartigan" is because the flow is linked to your Office 365 account in the connections.  The solution I have come up with is to create a Human Resources email address and connect this email as the Office 365 connection.  This way the email subject will be "Vacation Request - Requestor Name", and the email address sendor will be the HR address.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard