The data source depends on the switch, and if the user selects a record and then click the button, I want that record to be removed, but I am getting the following error: specified data source cannot be used with this function
You cannot refer to data sources dynamically - you will need to "hard code" all of that. The other issue is that ThisRecord can only refer to one record, which will only be of one of the data sources.
Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
MVP (Business Applications) Visit my blog Practical Power AppsBuy me a coffee
Was this reply helpful?YesNo
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.