Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Create one case record from Canvas App into Dynamics 365 Customer Service

Hi Power Apps Developers!

I'm not able to create one Dynamics 365 Case record from Canvas Apps by Patch() or SubmitForm() functions; cause:

  • there is the "Customer" polymorphic lookup field but D365 Case data don't achieve the attribute "Customer" (I remember that Customer is a grayed required field for Dynamics 365)
  • there is a lot of confusion on the Community about to fill correctly a simply CDS lookup field (ex. SLA lookup, Contact lookup etc...)

here the concept Power Apps Claim form:


here my code onSelect button "Create New":





        title: txtTitleFC.Text,
        description: txtDescriptionFC.Text,
        caseorigincode: Value(drpOriginFC.Selected.Value),
        prioritycode: drpPriorityFC,
        customer: First(colCustomerToBeAdded).colCustomerRecord
        sla: First(cmbSlaFC.selected)






colCustomerToBeAdded is a collection item with the record customer (Account or Contact) 

cmbSlaFC  is a combo box input filled by D365 SLA records data set (simply lookup field).


@fins reported the same problem at the end of this post:


I hope that someone expert will help us with a definitive solid solution to create a Case record by Power Apps and solve the Customer Polymorphic lookup.


Thanks in advance


Super User II
Super User II

Hi @David_Pezzoli 

This is well beyond my level of expertise but on searching regarding the issue I found the link below.  Perhaps it will help. 

@Drrickryp  Unfortunately it does not answer the problem or solve it: your link explain a contact example by Owner inside Contact form, not Case form...

Create a Case from a standalone Power Apps is my difficulty.


Thanks anyway for your trying!

Hi @David_Pezzoli 


I've tried to do the same thing with a Canvas Power App and gave up in the end.  My gut feeling is that it is not supported currently.  


What I have done instead is create a Power Automate flow to create the Case record instead.  The Canvas App calls the flow, the flow creates the Case in CDS and then the flow returns the Case ID back to Power Apps to do what you want with it.  


This isn't as elegant as it could be but it works for me.


The alternative is to raise a support case with Microsoft and get the official word on whether this is supported or not.


If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

@HSheild ,

thank you for your feedback, this issue is a sad gap for the Power Apps features. So this prove that the tool is still young: not being able to create a Case CDS record by Patch .... sigh... is disheartening!


Before choosing your reply like "Accept as Solution" I wait a few days if someone else has other opinions about this Microsoft gap.


Thank you so much!


Helpful resources

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users


We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Users online (35,000)