@WarrenBelz @RandyHayes I have a simple If statement which I know evaluates to true yet the Office365Outlook.SendEmailV2 function refuses to run 😞
This is what is not working - i.e no email is generated: DataCardValue8 is a Toggle and DataCardValue139 is a ComboBox
If(
DataCardValue8.Value = true && DataCardValue139.Selected.Value = "Sport and Recreation",
Office365Outlook.SendEmailV2(
varRecord.supervisor & ";" & "secondemail@qld.qld.gov.au; thirdemail@qld.qld.gov.au",
varRecord.firstname & " " & varRecord.surname & " has submitted a " & DataCardValue87.Selected.Value & " Report ID " & varRecord.ID & " on behalf of " & varRecord.'PI-firstname' & " " & varRecord.'PI-surname',
If(
DataCardValue87.Selected.Value = "Hazard",
HtmlTextforHazard.HtmlText,
HtmlTextforIncident.HtmlText
),
{
Cc: varRecord.manager & ";" & varRecord.'email-address',
Importance: "High"
}
),"")
I know the If statement evaluates to true cos I have put the following code on the Text property of a button:
If(DataCardValue8.Value = true && DataCardValue139.Selected.Value = "Sport and Recreation" ,"Yes", "No") and the Text display of the button is Yes.
If I change the If statement to the following, it works perfectly
If(
1=1,
Office365Outlook.SendEmailV2(
varRecord.supervisor & ";" & "secondemail@qld.qld.gov.au; thirdemail@qld.qld.gov.au",
varRecord.firstname & " " & varRecord.surname & " has submitted a " & DataCardValue87.Selected.Value & " Report ID " & varRecord.ID & " on behalf of " & varRecord.'PI-firstname' & " " & varRecord.'PI-surname',
If(
DataCardValue87.Selected.Value = "Hazard",
HtmlTextforHazard.HtmlText,
HtmlTextforIncident.HtmlText
),
{
Cc: varRecord.manager & ";" & varRecord.'email-address',
Importance: "High"
}
),"")
any assistance greatly appreciated