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 with ForAll and...
Power Apps
Unanswered

Remove with ForAll and Filter

(0) ShareShare
ReportReport
Posted on by 42

Hi,

 

I have an app where if a radio box is checked questions that are stored in a Dataverse then get populated into another Dataverse table relating to that record.

 

On the flip side if the checkbox is unchecked the questions should then be removed, this is the part I'm having issues with. 

 

I have used ForAll and filter and this is working for adding the questions, however when I try and remove the questions I can't seem to get this working. I have a many to 1 relationship from QuestionsTable to another table that stores the questions Sections

 

ForAll(Filter(QuestionsTable,'Section Title'.'Section Title'= "SectionA"),

RemoveIf(ProgressQuestionTable,'Site Name'.'Site Name'=VarCurrentSite.'Site Name' && 'Section Title'.'Section Title'="SectionA")
)

 

I'm sure my logic is wrong but can't seem to figure it out and I get the following error...

 

Rob1990_0-1714505981080.png

 

Not sure where I'm going wrong?

 

 

Categories:
I have the same question (0)
  • Verified answer
    RogierE Profile Picture
    875 Moderator on at

    I don’t recognize the error, but what I do know is that RemoveIf already removes all occurrences  and the above code doesn’t change if you in every run of the ForAll. 

  • Rob1990 Profile Picture
    42 on at

    @RogierE 

     

    Thanks for that manages to sort it by not using the filter and just handing it inside the 'RemoveIf'

     

    ForAll(QuestionsTable,
    
    RemoveIf(ProgressQuestionTable,'Site Name'.'Site Name'=VarCurrentSite.'Site Name' && 'Section Title'.'Section Title'="SectionA")
    )

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
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard