RE: How to set Lookup Field Value in D365 Sales from dropdown Menu using Canvas App
If you want to send data in CRM you want to use patch function. Here I mention the patch function code please use it.
In my case I have to send Meeting data and update in CRM record using patch function.
Patch(Meetings, Defaults(Meetings),{Regarding: LookUp(Contacts, Contact = GUID(Dropdown2.Selected.Contact))} , {Subject: DataCardValue4.Text} , {'Start Time': DateValue3.SelectedDate + Time(Value(HourValue3.Selected.Value),Value(MinuteValue3.Selected.Value),"0")} , {'End Time': DateValue4.SelectedDate} , {IsDraft: DataCardValue8.SelectedItems},{Location:DataCardValue5.Text});
It's work properly.
Thanks