Skip to main content



No record found.

Microsoft Dynamics CRM forum

Set Customer Name look up field

Posted on by 502


When Create a new lead in D365 thru C# code,  I have a value of CustomerNumber,  but I would like to populate that lookup field in CRM Lead as  customer Name.

Please advise how to do this I C#.

Thanks for your help.


  • Nya Profile Picture
    Nya 29,050 on at
    RE: Set Customer Name look up field

    Hi, Ddee

    I would like to know if the value of CustomerNumber is a fixed value or as an input condition for a query?

    I'm looking forward to your answer.

    Best Regards


Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans