Hey people,
what I was trying to do was writing an app in POWER APPS for sending an automated Email by ticking a checkbox for example in a Power BI Report. The Mail adresses should be taken out of an excel sheet and in there is also a list of work package numbers which should get a checkbox each. I'll show you in the annex how its supposed to look.
the code:
Clear(colGenehmigteWQs);
ForAll(
Gallery1.AllItems,
If(
!Checkbox_Unapprove.Value,
Collect(colGenehmigteWQs, ThisItem)
)
);
Set(mailText,
"Folgende WQs wurden genehmigt:" & Char(10) &
Concat(
colGenehmigteWQs,
"• " & ThisRecord.WQ & Char(10)
)
);
Set(mailEmpfaenger,
Concat(
Distinct(colGenehmigteWQs, Email),
Result & ";"
)
);
Office365Outlook.SendEmailV2(
mailEmpfaenger,
"Ihre genehmigten WQs",
mailText
);
Notify("✅ E-Mail wurde gesendet.", NotificationType.Success)
and the error i get is : unexpected signs. Characters are not used as expected in the formula
Thank you in advance!
With(
{
_Data: Filter(
Gallery1.AllItems,
!Checkbox_Unapprove.Value
)
},
With(
{
_Body: Concat(
_Data,
WQ,
Char(10)
),
_Mail: Concat(
Distinct(
_Data,
Email
),
Value,
";"
)
},
Office365Outlook.SendEmailV2(
_Mail,
"Ihre genehmigten WQs",
_Body
)
)
);
Notify(
"✅ E-Mail wurde gesendet.",
NotificationType.Success
)
With(
{
_Data: Filter(
Gallery1.AllItems;
!Checkbox_Unapprove.Value
)
};
With(
{
_Body: Concat(
_Data;
WQ;
Char(10)
);
_Mail: Concat(
Distinct(
_Data;
Email
);
Value;
";"
)
};
Office365Outlook.SendEmailV2(
_Mail;
"Ihre genehmigten WQs";
_Body
)
)
);;
Notify(
"✅ E-Mail wurde gesendet.";
NotificationType.Success
)
Stay up to date on forum activity by subscribing.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional