Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

How to set Lookup Field Value in D365 Sales from dropdown Menu using Canvas App

(1) ShareShare
ReportReport
Posted on by 35

Hi Community , 

In my D365 Project ,

I have a Meeting entity edit form and I want to set Regarding (Lookup Field) value on my submit button using Canvas App.

Here I attached screenshot for reference.

pastedimage1657018720033v1.png

How Can I set Regarding lookup field value in D365 Sales from dropdown menu of Canvas App once I click on Submit button.?

pastedimage1657018916333v2.png

Anyone can Help?

  • Kalp Shah Profile Picture
    Kalp Shah 35 on at
    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans