Hello everyone, I’m building a Power Apps Canvas App to create new Cases in Dataverse (the standard “incident” entity in Dynamics 365). Here’s what I’m experiencing:
-
Mandatory Customer Field
- In the Cases table (called “Casi” or “Caso” in my environment, but logically it’s
incident), there is a Customer field (_customerid_value) that’s System Required. - Every time I submit the form, I get the error:
“Casi failed: You must specify a contact or account.”
- I understand that this means the system expects either an Account or a Contact for that Customer field.
- In the Cases table (called “Casi” or “Caso” in my environment, but logically it’s
-
Attempts with SubmitForm
- I added a Combo Box for Client/Customer pointing to the Account table.
- In the form’s data card for
_customerid_value, I tried settingUpdatewith both:@odata.type→@odata.bind→- However, it still fails with the same “You must specify a contact or account” message.
-
Label to Display the GUID
- To confirm the selected Account GUID, I placed a Label control on the screen and set its Text property to:
- It displays a valid GUID (for instance:
d253fa15-e7f5-ef11-be21-003248a356b7), so I know the Combo Box is returning the correct ID.
- To confirm the selected Account GUID, I placed a Label control on the screen and set its Text property to:
-
Attempts with Patch
- I also tried Patch() instead of SubmitForm(), for example:
- I made sure the table name and column names were correct (sometimes “Caso” vs. “Casi,” or “incident” as the logical name).
- The GUID from
ComboBox1.Selected.accountidis retrieved correctly (as shown in the label). - But the same error persists, indicating that the system does not accept the account reference.
- I also tried Patch() instead of SubmitForm(), for example:
-
Relationship Name
- I tried finding the relationship name (e.g.,
customerid_account) via Solutions → Caso → Relationships, but the standard “Case” entity is managed, so no relationships show up in the modern UI. - Normally, the default relationship names are
customerid_accountorcustomerid_contactfor the Customer field on Case.
- I tried finding the relationship name (e.g.,
-
Other Details
- I confirmed that “Litware S.p.A. (esempio)” actually exists in Account and has a valid GUID.
- I’ve tried all suggestions, including using
If(IsBlank(ComboBox1.Selected), Blank(), …)in the card’sUpdateproperty, or using a label to displayComboBox1.Selected.accountid. - Every approach leads to the same error message at submission.
Question:
How can I successfully specify the Customer (contact or account) on a “Case” in Dynamics 365/Dataverse using a Canvas App? Why does the system still throw “You must specify a contact or account” even though I’m passing a valid Account GUID with @odata.bind or @odata.type?
Any guidance or best practices on properly populating _customerid_value in a Canvas App—especially for the incident (Case) entity—would be greatly appreciated.
Thank you!

Report
All responses (
Answers (