web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove flag of Shared ...
Power Apps
Answered

Remove flag of Shared Mailbox Emails connected to gallery

(0) ShareShare
ReportReport
Posted on by 1,115

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:

 

Categories:
I have the same question (0)
  • rameshmukka Profile Picture
    1,115 on at

    @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 at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard