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