I have a problem with my form. I explain my porject and issue below.
In my app i manage the appointments from Appointment Entity in CommonDataService. I use a custom Form to add new record to the entity by using the Appointment quick create form from Dynamic365 (image below)
The "Contact Name" field is a lookup filed. It has been created by the relation more to one with the Entity Contact has i've shown below
From those datasource i created my app to manage the appointments (Create, modify and view forms)
The main screen has a gallery with the Appointment Entity records.
no errors occur when I edit a record because the Contact Name field is in DisplayMode.View, but when I create a new record, i get an error from the submitForm() function
I'm tring to write a lookup object (obtained from the contact table) to the Appointment Fild, and this doesn't like to the system. The error message: The requested operation is invalid. Server response: a value must be submitted for this item"
Did you use the default auto-generated app and didn't make any changes? If not, please tell what changes that you made, and share the related formulas. Like what is the Update property of the problematic data card.
Community Support Team _ Mona Li If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I created a lookup field in the Appointment Entity in CDS bye creating a realtion m-2-1 with Contact Entity (as i'v shown below)
Then in PowerApps Studio in Edit Form i did like that.
My goal is to submit the form (with PAtch() or SubmitForm() ?) in order to update the entity Appointment (to update the 'Contact Name' field in Appointment Entity with an Contact object which is showhing then full name).