Search code examples
dynamics-crmpowerappspowerapps-canvas

Create lead in D365 from PowerApps information


enter image description here

When 'Request Quote' is pressed, I want all the info from the text boxes to be sent to Dynamics 365 and for a lead entity to be created and filled out with all info.


Solution

  • For other data sources, we usually do SubmitForm. But for CDS we have to use PATCH function.

    Read more

    Patch(
     "CDSEntityDataSource",
     Defaults(CDSEntityDataSource),
     {
       Column1:DataCardValue1.Text,
       Column2:DataCardValue2.Text,
       ...
     }
    )