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 Apps / Send Mail notification...
Power Apps
Answered

Send Mail notification to the owner as soon ticket has status closed

(0) ShareShare
ReportReport
Posted on by 180

I’ve modified the «service desk» template and I would like to implement the following at the “TicketdetailsPage ” :

As soon the ticket status is “closed” and the button “save” is hit it should send a mail notification to the owner of the ticket.

 

If("StatusCase" = "Geschlossen";
SubmitForm(TicketDetailsForm);
Office365.SendEmail("Tickets.Owner";  <---
 here is my problem
"Ticketsystem - Ticket ID: " & Value16-1 & Char(45) & Subject & " wurde geschlossen"; "Dein Ticket mit der ID " & Value16-1 & " wurde gelöst"
&Char(13) & " Abschluss-Kommentar: " & Value3 & Char(13)
& "Geschlossen durch: " & User().FullName)
;SubmitForm(TicketDetailsForm)
)

Have to mention, all user have a Office365 account,
and @ the “CreatenewticketPage” user are automatically detected with “User().FullName” equals “owner” in Excel-DB-sheet.

Probably I need to transform the User().FullName to User().Email but how??? o0

Would be thankful for any hint

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

    Hi @Unbihexium ,

    Do you want to send an email to the owner of the Ticket when you click "Save" button within the TicketdetailsPage?

    Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

    Firstly, you need to add a Office 365 Users connector as a data source within your app. Then modify the formula within the OnSelect property of the "Save" button within TicketdetailsPage to following:

    If(
    "StatusCase" = "Geschlossen"; SubmitForm(TicketDetailsForm); Office365.SendEmail(
    LookUp(Office365Users.SearchUser(); DisplayName = TicketsGallery.Selected.Owner; Mail); /* <-- Modify formula here. Find the email address of the specific owner via the Owner name */ "Ticketsystem - Ticket ID: " & Value16-1 & Char(45) & Subject & " wurde geschlossen"; "Dein Ticket mit der ID " & Value16-1 & " wurde gelöst" &Char(13) & " Abschluss-Kommentar: " & Value3 & Char(13) & "Geschlossen durch: " & User().FullName
    );SubmitForm(TicketDetailsForm) )

    Note: I assume that the user use the Full Name as the Display Name within their Office 365 Profile.

     

    Best regards,

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Duplicated

  • Unbihexium Profile Picture
    180 on at

    Hello Kris


    Thank you for your reply.

    That was excactly what I've been looking for. Thank you so much! 


    I had to type it like this: "LookUp('Office365-Benutzer'.SearchUser(); DisplayName = TicketsGallery.Selected.Owner; Mail);"

    because of the language I guess ^^
    It works perfectly!

    Best regards

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard