Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zJPIJZfZEQHpOQKjN3bRz6
Power Apps - Building Power Apps
Answered

Remove flag of Shared Mailbox Emails connected to gallery

Like (0) ShareShare
ReportReport
Posted on 20 Apr 2021 19:49:22 by 1,089

I have a gallery connected to Shared Mailbox with below formula.

If(RefreshOutlook,Blank(),Office365Outlook.GetEmailsV3({folderPath: "Inbox", top: 25, fetchOnlyUnread:false, includeAttachments: true, fetchOnlyFlagged:true,mailboxAddress:"1readytofiletmrcd@abc.com"}).value)

As you can see, am only fetching flagged emails. I have a button "Forward" on my app, on click of it I am sending my gallery selected email to another mailbox. That itself is working fine. Now immediately after that, I would like to remove the flag of my gallery selected email. So I was trying to use below formula I found but stuck what to mention at "flag:". I did not find any documentation regarding this. Can anyone here?

 

Office365Outlook.FlagV2(Gallery1.Selected.id,{flag:

 

  • rameshmukka Profile Picture
    1,089 on 22 Apr 2021 at 18:40:24
    Re: Remove flag of Shared Mailbox Emails connected to gallery

    @v-xiaochen-msft Thanks for continuous support. This one worked like a charm. I wish we have documentation for this. Do you know if there is one?

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 22 Apr 2021 at 05:57:52
    Re: Remove flag of Shared Mailbox Emails connected to gallery

    Hi @RameshMukka ,

     

    Please try this formula:

    Office365Outlook.FlagV2(Gallery1.Selected.id,{flag:{flagStatus:"2"}})

    // Flag

    Office365Outlook.FlagV2(Gallery1.Selected.id,{flag:{flagStatus:"0"}})

    // Unflag

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,077 Most Valuable Professional

Leaderboard
Loading started