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

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
Super User

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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (2,227)