I assume you have Administration module which has Account entity and capture the email with that entity.
As you already figured out, you must use $currentUser to get the current logged in user, you can pass that to a microflow, use inheritance and cast it to Account. Something like below and use the account object to get the Email
Thanks for the reply, I do not have administrator module. I have the following modules :
Do you know how to add administrator module?
In version 8.17 you can find the account entity in the domain model as found in appstore modules / administration
If Administration module is present, it can be found here: Project ‘MailService’- App Store modules.
Thanks a lot. Got it.