Hi everyone,
I’m working on a Power Apps Portal and Model-Driven App in a test environment. Currently, I have a setup where an applicant submits an application form through a Power Pages Portal, and this creates a case in Dataverse. Caseworkers manage these cases in a Model-Driven App using a Business Process Flow. If additional information is required, the caseworker can specify which fields in the application need to be updated using an embedded Canvas App. This information is then saved in a column in Dataverse, where the editable fields are stored as an array of field names.
When the applicant returns to the portal to edit their application, only the fields marked by the caseworker as requiring updates should be editable, while all other fields should remain read-only. Currently, this behaviour is achieved by hardcoding the editable fields into the JavaScript running on the portal page.
I would like to replace this with a dynamic approach that fetches the editable fields directly from Dataverse and adjusts the form behaviour accordingly. Specifically, how can I use the JSON data saved in Dataverse to control field editability in the portal? I have some ideas but just not sure if I’m approaching it correctly so any advice or best practices would be greatly appreciated.
Thank you!