cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbrit2020
Super User
Super User

Remove function not working

I've used this function several times, without ever having any issues.

 

For some reason in this new app I'm creating, it is not working.

 

It's a simple process, I click on an item in a gallery, that item becomes a variable called "Var1", and then there's an Icon with a trash can I click with this code in it: 

 

Remove('OP.workstreams TX', Var1)

 

but it is returning the following error:

 

"Cannot remove a non record value in this context powerapps"

 

Not sure what's up if I'm missing something obvious that I've subconsciously did on my other apps that I'm not doing here, but I'm bamboozled 

1 ACCEPTED SOLUTION

Accepted Solutions
jbrit2020
Super User
Super User

Well...so, my bad, found the issue. When you define a variable from an item on a gallery, you need to define "ThisItem" and not "ThisItem.ColumnName" if you do, the remove function won't work with this variable as it does not recognize the record.

 

Feeling silly right now

View solution in original post

1 REPLY 1
jbrit2020
Super User
Super User

Well...so, my bad, found the issue. When you define a variable from an item on a gallery, you need to define "ThisItem" and not "ThisItem.ColumnName" if you do, the remove function won't work with this variable as it does not recognize the record.

 

Feeling silly right now

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,130)