Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

SubmitForm doesn't work when i submit a Lookup object to CDS field

Hi everyone,


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)


modulo quick create1.PNGmodulo quick create2.png 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

screen2.PNGI'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"

I already visit this thread 

but i don't understand how it can help me. 


Thank you.



Community Support
Community Support

Re: SubmitForm doesn't work when i submit a Lookup object to CDS field



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.
Frequent Visitor

Re: SubmitForm doesn't work when i submit a Lookup object to CDS field

Hi @v-monli-msft 


At first, Thank you fot the answer.


I show you what i did below.

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).


I'm getting crazy!! 


Thank you,



Helpful resources


Microsoft Ignite

This will be a conference that you do not want to miss!


New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,105)