get parent GUID,vice versa RRS feed

  • Question

  • hi all,
    i have parent and multi child entities
    i need to know all child GUID when selecting parent via lookup
    in other hand , when i get child guid i need to know his parent guid
    foreach(object HeartBeat in me.heart.Beats) messageBox.show("I miss u !!")
    Sunday, May 3, 2009 7:11 AM


  • Hi Dany,

    Are you talking about JScript or C#?
    For C#, if you have a look the Query Entities topic in the SDK to get childs/parent GUID, it's quite straight forward.
    For JScript, you may use something like: crmForm.all.new_parent.DataValue[0].id to get the lookup GUID. Use SOAP request  to get all child entities GUID.

    Hope it helps.


    Jim Wang - MVP Dynamics CRM - http://jianwang.blogspot.com , http://mscrm.cn
    • Marked as answer by Dany85 Monday, May 4, 2009 6:58 AM
    Sunday, May 3, 2009 11:56 PM