Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Patch Statement not Patching Collection

Posted on by
Hello, 
I am creating a powerapp that my team can use to manage security roles for users in each of our environments in one place.  At this point everything works except for updating the collection that stores user information and their security roles.  The collection called users is created in the OnStart property and uses power automate flows to pull the data on the users from dataverse.  The format for the a record in users is as follows businessUnit: text, guid: text, name: text, and roles which stores a collection of security roles.   When a change is made to the roles a user has, I have another flow that will get the updated information from dataverse and store it in a collection called userRoles.  This is where I am having an issue, according to monitor the updated data is being brought back into the app and it is stored in the userRoles collection but when I try to patch the original users collection the data for the roles is not updated.  I am relatively new to powerapps but should I be using something other than patch to do this or could there be another reason this is happening.  
Thanks
Categories:
  • ronaldwalcott Profile Picture
    ronaldwalcott 855 on at
    Patch Statement not Patching Collection
    Show the Patch statement that you are using and the collections.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard