I have 2 dropdowns "Topics" and "SubTopic" on a screen(not a form)
I need this Lookup function find the email address.
Lookup(sales_category, Topics=Topics_Input.Selected.Result && SubTopic = Subtopic_Input.Selected.Result,email)
then
i need the "email" part of this function for the "TO" address in the email creation below ?
What I need:
I need to change the "TO" email address based on the Lookup above ? in the code below ?
Office365Outlook.SendEmailV2(
"Sales_Incentive_Finc@xxxxxx.com",
"Work Request: " & varLastID & "",
"Sales Intake: Question Submission" & " "
& "<br>Request Id: " & varLastID & ""
& "<br>Requestor: " & Requestor_Input.Text & ""
& "<br>Requestor_User_Id: " & Requestor_Input_Racfid.Text & ""
& "<br>Impacted_Team_Member: " & txtTeam_Member_V.Text & ""
& "<br>Impacted_Team_Member_Racfid: " & txtRacfid.Text & ""
& "<br>Topic: " & Topics_Input.Selected.Result & ""
& "<br>Sub_Topic: " & Subtopic_Input.Selected.Result & "<br><br>"
& "<br>Question: " & txtQuestion_Submit.Text & "<br><br>"
& "<br>For Sales Operation Team: <a href='https://apps.powerapps.com/play/2xxxxxxxx792f14b-9c8b-43cdvfvfvf-b953-23xxxxx089573cccxx1498?tenantId=48d1dcb6-bccc-4365-ac7f-b937a7f7fd71&FormID=" & varLastID & "'> Link </a>"
,
{
Attachments: ForAll( // Modify formula here
RenameColumns(Form_Create_Id.LastSubmit.Attachments, "DisplayName", "FileName", "Value", "FileContent"),
{
Name: FileName,
ContentBytes: FileContent,
'@odata.type': ""
}
)
}
);
Thanks
Dave