locked
set the RegardingObjectId RRS feed

  • Question

  • Can you please say the syntax for  how to set the RegardingObjectId in javascript ?
    Wednesday, March 16, 2016 11:16 AM

All replies

  • The good news is they are the same as any Lookup.  You just need to set the value to an object array:

    var regObj = {};
    regObj.entityType = "contact";
    regObj.name = "John Doe";
    regObj.id = "{3B23C3D4-6D37-E411-80CE-0017A477D448}";
    Xrm.Page.getAttribute("regardingobjectid").setValue(regObj);
    

    Wednesday, March 16, 2016 12:04 PM
  • Thank you.
    Thursday, March 17, 2016 5:29 AM
  • Hello Santhosh,

    If Chris's reply answered your question then spent a minute marking his reply as answer plus you can say "Thank you" with voting up his reply.


    Dynamics CRM MVP
    Read My blog
    Subscribe for one of my courses

    Friday, March 18, 2016 12:18 PM
    Moderator