locked
assign value in contact lookup field RRS feed

  • Question

  • Hi,

    Please help to assign contact person name into contact lookup field

    Regards,

    Noushad


    pnoushu@hotmail.com

    Wednesday, October 7, 2015 8:33 AM

All replies

  • Hi Noushad,

    You can set the contact lookup field using below C# code:

    _EntityToUpdate.ContactPersonName = new EntityReference("contact", targetContactGuid);



    Note:
    ContactPersonName is the lookup field name
    targetContactGuid is the guid object which contain the guid of contact which you want to set the contact lookup field


    • Edited by Piyush Parate Wednesday, October 7, 2015 8:54 AM
    • Proposed as answer by Piyush Parate Wednesday, October 7, 2015 8:54 AM
    Wednesday, October 7, 2015 8:50 AM