locked
Get Lead GUID from Qualify Lead screen RRS feed

  • Question

  • Hi,

    How to get the  parent lead guid from the qualify lead aspx screen using javascript?


    Vinayak Chavan

    Friday, December 6, 2013 10:52 AM

All replies

  • could you share some more details what you are trying to implement ??

    Our Website | Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Friday, December 6, 2013 11:10 AM
    Moderator
  • Scenario

    1) User will click on qualify button on lead which will provide qualify lead screen.

    2) For disqualification he will select reason as 'Others'.

    3) On selection of Others, javascript function will prompt for user input (using input box).

    4) We have to set this user input on lead main form as rejection reason.

    We are trying to save this rejection reason from qualify lead aspx only using javascript and for that reason we need parent lead guid.


    Vinayak Chavan

    Friday, December 6, 2013 11:27 AM
  • Hi ,

    Try the below line to get the parent record guid.

      

    window.parent.Xrm.Page.data.entity.getId()
    or else try the below one
    window.top.opener.parent.Xrm.Page.data.entity.getId(); 

    Regards,

    Priya

    • Proposed as answer by PriyaSwain Tuesday, December 10, 2013 10:40 AM
    Tuesday, December 10, 2013 10:40 AM