
Hi,
I have a PowerApp to create a new record in Dynamics 365 custom entity.
My app has an Edit form with 2 input fields, and a button which executes Patch function to create the record.
The custom entity has only 2 mandatory fields - Name and Owner.
When I run the app and click the button, there is no record created in Dynamics 365.
I see the error "An unknown error occurred" as in the screenshot.
I tried using Errors function but there is no error returned.
Am I missing something in the Patch function? Any pointers appreciated.
Thank you!
I fixed this and it is working now. The text property of the Text Input control was missing in the Patch function.
Not Working - Patch(PowerAppData, Defaults(PowerAppData),{new_name:TextInput1,new_firstname:TextInput2})
Working - Patch(PowerAppData, Defaults(PowerAppData),{new_name:TextInput1.Text,new_firstname:TextInput2.Text})