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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to remove record w...
Power Apps
Unanswered

how to remove record when status is rejected??

(0) ShareShare
ReportReport
Posted on by 1,994

Hi

 

I like to check how to auto remove records when the status is rejected?

 

I have a list of gallery pick from SP list and going through the approval workflow.  
As records are input into SP list and display on gallery, how to auto remove the row of record in the gallery
when the approval is rejected - status will show rejected.
 
thx
Categories:
  • ganeshsanap Profile Picture
    1,555 on at

    @bbsin 

    Add filter in items property of gallery to exclude the rows with rejected status. can you show us the current formula used in items property of your gallery control?


    Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

     

    Best Regards,

    Ganesh Sanap

    Blog site 

  • bbsin Profile Picture
    1,994 on at

    @ganeshsanap 

     

    Currently the Gallery Item is to search nothing else

     

    SortByColumns(
    Filter(
    'list',
    (IsBlank(ComboBox1_2.Selected.Value) || IsEmpty(ComboBox1_2.Selected.Value) || Type.Value = ComboBox1_2.Selected.Value)
    &&
    (IsBlank(ComboBox1_1.Selected.Value) || IsEmpty(ComboBox1_1.Selected.Value) || C.Value = ComboBox1_1.Selected.Value)
    &&
    (IsBlank(CombSearchUser_1.Selected.) || IsEmpty(CombSearchUser_1.Selected.) || Requestby = CombSearchUser.Selected
    ),
    "ID",
    Descending

    )

  • ganeshsanap Profile Picture
    1,555 on at

    @bbsin Try using below:

    If Status column is of type "Choice":

     

    SortByColumns(
    	Filter(
    		'list',
    		(IsBlank(ComboBox1_2.Selected.Value) || IsEmpty(ComboBox1_2.Selected.Value) || Type.Value = ComboBox1_2.Selected.Value)
    		&&
    		(IsBlank(ComboBox1_1.Selected.Value) || IsEmpty(ComboBox1_1.Selected.Value) || C.Value = ComboBox1_1.Selected.Value)
    		&&
    		(IsBlank(CombSearchUser_1.Selected.) || IsEmpty(CombSearchUser_1.Selected.) || Requestby = CombSearchUser.Selected)
    		&&
    		Status.value <> "Rejected"
    	),
    	"ID",
    	Descending
    )

     

    If Status column is of type (simple) text: 

     

    SortByColumns(
    	Filter(
    		'list',
    		(IsBlank(ComboBox1_2.Selected.Value) || IsEmpty(ComboBox1_2.Selected.Value) || Type.Value = ComboBox1_2.Selected.Value)
    		&&
    		(IsBlank(ComboBox1_1.Selected.Value) || IsEmpty(ComboBox1_1.Selected.Value) || C.Value = ComboBox1_1.Selected.Value)
    		&&
    		(IsBlank(CombSearchUser_1.Selected.) || IsEmpty(CombSearchUser_1.Selected.) || Requestby = CombSearchUser.Selected)
    		&&
    		Status <> "Rejected"
    	),
    	"ID",
    	Descending
    )

     


    Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

     

    Best Regards,

    Ganesh Sanap

    Blog site 

  • bbsin Profile Picture
    1,994 on at

    hi

     nothing happens.. and there's error  

    bbsin_0-1622713979312.png

     

     

    I want to delete off the this row record when it's status is rejected

     

    The status is choice field.  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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard