cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
Post Prodigy
Post Prodigy

sending an email and popup message depending on radio button choice

I have a radio button that has 5 choices.
Depending on which radio button is selected an email and a popup message occurs.

I dont have something right here because i dont always get the popup message ?
"UpdateContext({Popup_Email_Sent_r: true});Refresh(eMail_Flow_Intake_Information)"


I dont think i have the IF statement correct ?


Thanks
dave

Set(varNow, Now());
If(Radio3.Selected.Value = "Submitted", 
      SubmitForm(Form2)
;
Office365Outlook.SendEmailV2(
                    DataCardValue15.Text, 
                    "Work Request: " &varRecord.ID & "", 
                    "Sales Intake Response " & " "
& "<br>Request Id: " & varRecord.ID & "" 
& "<br>Requestor: " & DataCardValue14.Text &  "" 
& "<br>Requestor_User_Id: " & DataCardValue16.Text &  "" 
& "<br>Impacted_Team_Member: " & DataCardValue17.Text & "" 
& "<br>Impacted_Team_Member_Racfid: " &DataCardValue18.Text & ""
& "<br>Topic: " & DataCardValue20.Text & "" 
& "<br>Sub_Topic: " & DataCardValue21.Text & ""
& "<br>Question: " & DataCardValue31.Text & "<br> "
& "<br>Response: " & DataCardValue23.Text & "<br> <br> "
& "<br>Click Here to Respond <a href='https://apps.powerapps.com/play/953-230895731498?tenantId=48d1dcb6-bccc-4365-ac7f-b937a7f7fd71&FormID=" & varRecord.ID & "'> Link </a>",{Cc:"Requestor_eMail_DataCard1.Text"}
                

);UpdateContext({Popup_Email_Sent_r: true});Refresh(eMail_Flow_Intake_Information)
,
Radio3.Selected.Value ="In Progress", 
SubmitForm(Form2)
;
Office365Outlook.SendEmailV2(
                    DataCardValue15.Text, 
                    "Work Request: " &varRecord.ID & "", 
                    "Sales Intake Response " & " "
& "<br>Request Id: " & varRecord.ID & "" 
& "<br>Requestor: " & DataCardValue14.Text &  "" 
& "<br>Requestor_User_Id: " & DataCardValue16.Text &  "" 
& "<br>Impacted_Team_Member: " & DataCardValue17.Text & "" 
& "<br>Impacted_Team_Member_Racfid: " &DataCardValue18.Text & ""
& "<br>Topic: " & DataCardValue20.Text & "" 
& "<br>Sub_Topic: " & DataCardValue21.Text & ""
& "<br>Question: " & DataCardValue31.Text & "<br> "
& "<br>Response: " & DataCardValue23.Text & "<br> <br> "
& "<br>Click Here to Respond <a href='https://apps.powerapps.com/play/b953-230895731498?tenantId=48d1dcb6-bccc-4365-ac7f-b937a7f7fd71&FormID=" & varRecord.ID & "'> Link </a>",{Cc:"Requestor_eMail_DataCard1.Text"}
                

);UpdateContext({Popup_Email_Sent_r: true});Refresh(eMail_Flow_Intake_Information), 


Radio3.Selected.Value = "Awaiting Reply", 
SubmitForm(Form2)
;
Office365Outlook.SendEmailV2(
                    DataCardValue15.Text, 
                    "Work Request: " &varRecord.ID & "", 
                    "Sales Intake Response " & " "
& "<br>Request Id: " & varRecord.ID & "" 
& "<br>Requestor: " & DataCardValue14.Text &  "" 
& "<br>Requestor_User_Id: " & DataCardValue16.Text &  "" 
& "<br>Impacted_Team_Member: " & DataCardValue17.Text & "" 
& "<br>Impacted_Team_Member_Racfid: " &DataCardValue18.Text & ""
& "<br>Topic: " & DataCardValue20.Text & "" 
& "<br>Sub_Topic: " & DataCardValue21.Text & ""
& "<br>Question: " & DataCardValue31.Text & "<br> "
& "<br>Response: " & DataCardValue23.Text & "<br> <br> "
& "<br>Click Here to Respond <a href='https://apps.powerapps.com/play/b953-230895731498?tenantId=48d1dcb6-bccc-4365-ac7f-b937a7f7fd71&FormID=" & varRecord.ID & "'> Link </a>",{Cc:"Requestor_eMail_DataCard1.Text"}
                

);UpdateContext({Popup_Email_Sent_r: true});Refresh(eMail_Flow_Intake_Information)
,
Radio3.Selected.Value = "Completed – No Email", 
  SubmitForm(Form2),
Radio3.Selected.Value = "Completed – Sent Email", 
SubmitForm(Form2);
Office365Outlook.SendEmailV2(
                    DataCardValue15.Text, 
                    "Work Request: " &varRecord.ID & "", 
                    "Sales Intake Response " & " "
& "<br>Request Id: " & varRecord.ID & "" 
& "<br>Requestor: " & DataCardValue14.Text &  "" 
& "<br>Requestor_User_Id: " & DataCardValue16.Text &  "" 
& "<br>Impacted_Team_Member: " & DataCardValue17.Text & "" 
& "<br>Impacted_Team_Member_Racfid: " &DataCardValue18.Text & ""
& "<br>Topic: " & DataCardValue20.Text & "" 
& "<br>Sub_Topic: " & DataCardValue21.Text & ""
& "<br>Question: " & DataCardValue31.Text & "<br> "
& "<br>Response: " & DataCardValue23.Text & "<br> <br> "
& "<br>Click Here to Respond <a href='https://apps.powerapps.com/play/b953-230895731498?tenantId=48d1dcb6-bccc-4365-ac7f-b937a7f7fd71&FormID=" & varRecord.ID & "'> Link </a>",{Cc:"Requestor_eMail_DataCard1.Text"}
                

);UpdateContext({Popup_Email_Sent_r: true});Refresh(eMail_Flow_Intake_Information)


)
10 REPLIES 10

and this:

{Cc:"Requestor_eMail_DataCard1.Text"}

 

 

should be

this

 {Cc:DataCardValue24.Text} )

 

Dave

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,464)