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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unrelate all values fr...
Power Apps
Unanswered

Unrelate all values from a record and relate others

(0) ShareShare
ReportReport
Posted on by

I am trying to Unrelate all the values from a combobox and then relate the values from a different combobox. Both combobox reference my Users table from another table (gblExistingCase.Users).

 

I have tried making a collection from the selected items and then unrelating the items

 

 

 

ClearCollect(colPeopleReportedTo_EC_NU,cmbPeopleReportedTo_EC_NDUC.SelectedItems);
ForAll(colPeopleReportedTo_EC_NU,Unrelate(gblExistingCase.Users,ThisRecord));

 

 

 

I receive the following warning "Value must be a data entity record"

 

Nontheless, when I relate the other combobox with the same structure I receive no warning and the relation is made. Namely:

 

 

 

ClearCollect(colPeopleReportedTo_NC_NU,cmbPeopleReportedTo_NC_NDUC.SelectedItems);
ForAll(colPeopleReportedTo_NC_NU,Relate(gblExistingCase.Users,ThisRecord));

 

 

 

I do not understand why when I relate there is no problem, if at the end both structures are identical.

At the end what I want to do is to unrelate all the values from "gblExistingCase.Users" and then relate the updated Users, regardless if some users are already related or not.

Any help to solve my issue is appreciated, I am not sure where the error is.

I have the same question (0)
  • RMCoder Profile Picture
    219 on at
    Re: Unrelate all values from a record and relate others

    I would double check that your second combo box  is referencing the entire table and not just a single column in that table.

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 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard