I am Building a Powerapp for a Customer. The entity from dynamics 365 I want to update is Accounts. There are three screens named BrowseScreen, DetailScreen, and EditScreen. BrowseScreen shows the accounts list, and when you select an account it navigates you to DetailScreen. DetailScreen shows data fields details about that selected account and if you want to edit that account there is an edit button on the DetailScreen which will navigate you to EditForm from where you can edit the fields you want to modify in Accounts.
But the problem is, in accounts, there is a lookup field called Parent Account which specifies who is the parent of that particular account. In EditForm there is a Parent Account Dropdown populated with account names, I want to update particular account parent account field in the d365 to the dropdown selected value on the click of the submit button. I have written Formula to Patch the accounts record but it's not working. it's giving me the server response error.
I would greatly appreciate any suggestion. thank you.