Share via

MFA Blocking Powerapps Functions

Anonymous
2023-08-09T16:35:48+00:00

Hello! 

I'm currently working on a powerapp which allows a user to reply to an email within a ticketing system but am running into the following error:

maria_rizo_1-1686066168214.png

The code that seems to be giving the error is this: 

Office365Outlook.ReplyToV2(
Gallery4_1.Selected.messageID,
{
Body: RichTextEditor6.HtmlText,
Attachments: RenameColumns(DataCardValue9.Attachments, "Value", "ContentBytes"),
Subject: TextInput3.Text,
To: Concat(
ComboBox4.SelectedItems,
Mail & ";"
),
Cc: Concat(
ComboBox5.SelectedItems,
Mail & ";")
}
);

After a bit of testing, I noticed that the error only seems to appear when the user accessing the apps has MFA enabled on their account. We currently have an MFA policy which excluded PowerApps and Microsoft flows but it still doesn't seem to be going through. Getting rid of the MFA is out of the questions so does anyone have any suggestions for how to get around this without disabling the MFA entirely?

Thank you in advance!

Microsoft 365 and Office | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-09T19:01:28+00:00

    Hello Maria

    I’m Adeyemi and I’d be happy to help you with your question.

    It seems that you have already excluded PowerApps and Microsoft flows from your MFA policy, but the issue still persists.

    One possible solution could be to use a service account with the necessary permissions to perform the actions in your PowerApp, and use that account to authenticate with the Office365Outlook connector instead of the user's account. This way, the actions performed by the PowerApp would not be affected by the user's MFA settings.

    Another option could be to check if there are any additional conditional access policies in place that might be affecting the behavior of your PowerApp. You can do this by going to the Azure portal, navigating to Azure Active Directory > Security > Conditional Access, and reviewing the policies that are currently in place.

    I hope these suggestions help!

    Give back to the Community. Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below

    Regards Adeyemi

    Was this answer helpful?

    0 comments No comments