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