locked
find the PID of eamil entity RRS feed

  • Question

  • how can we find the PID of eamil entity??
    thanks
    Thursday, February 11, 2010 7:13 AM

Answers

  • I presume you mean GUID and not PID?

    If so here is a sample of the code we use on the onLoad event of the Contact entity to get the record GUID.
    try
    {
    crmForm.all.new_recordguid.DataValue = window.location.href.split("?")[1].split("=")[1];
    crmForm.all.new_recordguid.DataValue = crmForm.all.new_recordguid.DataValue.replace("#", "");
    }
    catch(e){}
    Where new_recorduid is the name of the attribute where we store the guild value we grabbed.
    Jerry http://www.crminnovation.com
    • Marked as answer by Jim Glass Jr Thursday, February 18, 2010 9:22 PM
    Thursday, February 11, 2010 2:22 PM

All replies

  • PID?

    Wtat is it?


    David Kolodziejczyk
    http://team4crm.com
    Thursday, February 11, 2010 11:20 AM
  • I presume you mean GUID and not PID?

    If so here is a sample of the code we use on the onLoad event of the Contact entity to get the record GUID.
    try
    {
    crmForm.all.new_recordguid.DataValue = window.location.href.split("?")[1].split("=")[1];
    crmForm.all.new_recordguid.DataValue = crmForm.all.new_recordguid.DataValue.replace("#", "");
    }
    catch(e){}
    Where new_recorduid is the name of the attribute where we store the guild value we grabbed.
    Jerry http://www.crminnovation.com
    • Marked as answer by Jim Glass Jr Thursday, February 18, 2010 9:22 PM
    Thursday, February 11, 2010 2:22 PM
  • GUID defined: http://msdn.microsoft.com/en-us/library/system.guid.aspx
    CRM Community Guru and Saxophonist
    Thursday, February 18, 2010 9:23 PM