I am setting a variable on the next arrow of a gallery.
When I try to use this variable to refer to a record for deletion, the Remove() function will not accept my variable.
However if I change my Set() statement to this
it does work. Either one appears to work for RemoveIf, and for every other function I have tried. What exactly is the difference between ThisItem and Gallery.Selected that specifically the Remove function would only work with one?
Hi @Boneckrh19 ,
Set( VariableName, Value )
However, Gallery.selected it can be seems as one variable,you can use, Remove(datasource,Gallery.selected)
Hope this could be helpful.
I was wondering what the differences are between a record variable saved with Gallery.Selected versus one saved with ThisItem. Clearly one difference is that Remove does not work with the Gallery.Selected one, but why is this the case? And what else might be different between them?
This information is not in the documentation for the Remove function or the Set function. It seems to be a very specific use case, so I don't imagine this information is in the documentation for any powerapps function. I was hoping someone else had come across a similar use case and could share their experience.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.