Users can click a button in my powerapp to create an export of a record which is then emailed out. I am however having difficulty working out how to send the email to the user who requested the export.
I tried using a 'get user profile' Office action and 'Ask in Powerapps' but it didn't work as that appeared to be pulling out the ID. I'm sure I'm missing something.
Is there any way I can get my flow to recognise the email of the person who triggered it and send the email to that person?
Thanks,
Solved! Go to Solution.
Typically, I worked it out!!
I did just need to select 'Ask in Powerapps' in the 'Send To' part of 'Send an Email' but what I missed was that I needed to add a second parameter to the Run() function so first it grabbed the ID of the record, and then it grabbed the email, so it ended up as an issue on the App end not automate:
'Copyof-createincidentreportexport'.Run(ThisItem.ID, varUserEmail);
Typically, I worked it out!!
I did just need to select 'Ask in Powerapps' in the 'Send To' part of 'Send an Email' but what I missed was that I needed to add a second parameter to the Run() function so first it grabbed the ID of the record, and then it grabbed the email, so it ended up as an issue on the App end not automate:
'Copyof-createincidentreportexport'.Run(ThisItem.ID, varUserEmail);