Please help people.
I have built a visitor management app. The app asks the user to complete a form upon check-in to the building which the data is connected to a sharepoint list. I am trying to make the app send an email to notify the person they are visiting when they select the person's name from the dropdown list on the form then click submit.
However, I keep getting an error indicating the "To" email value is not being passed... ?? and can't figure out why...?
This is the code I am using on the OnSuccess Action/Function:
ResetForm(CheckinForm); Navigate(LandingHomePage); Office365Outlook.SendEmailV2(DataCardValue13.Selected.Email, "You have a visitor.", "Please respond to the lobby you have a visitor.")
DataCardValue13 is connected to a person/group column in the SharePoint list and it is pulling the correct data.
I would also like to send the notification and include the visitor names with a approve or deny message back function through teams and would appreciate any recommendations for a simple powerautomate flow to build for that.
Help is greatly appreciated.