Microsoft Dynamic CRM 2011 - javascript function to disable the status of current entity and create related lead record.

Kérdés Microsoft Dynamic CRM 2011 - javascript function to disable the status of current entity and create related lead record.

  • Monday, May 28, 2012 6:53 AM
     
     

    Hi,

    Is there any way to qualify a custom entity (like lead qualification) through a custom ribbon button (as Qualify button in lead). These are in lead entity.. but our business requirement needs same custom button in another custom entity (say prospects).. We achieve till to display that button on that custom entity form. But we could not find a way to write a javascript function to qualify that prospect's record and to create related lead record.

    Is there any javascript way or to create custom aspx page and by loading that. And where to put that custom aspx page ?

    Any help !!


All Replies

  • Monday, May 28, 2012 8:49 AM
    Moderator
     
     

    Hi,

    In your ribbon button you can write code to read all realted information and create lead entity form using create request, and in the same ribbon button you can write to deactivate your custom entity recrod.


    Mahain : Check My Blog
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Monday, May 28, 2012 8:56 AM
     
     

    Hi Mahender Pal,

    Can you please give me reference? I know i will have to do this. I will have to write javascript and will have to include in solution as resource and will have to call that.

    would you give me some reference or sample code that how to do that using javascript ?

  • Monday, May 28, 2012 10:10 AM
    Moderator
     
     

    Hi,

    MS CRM SDK have samples for javascript,

    For setting state refer : http://dotnetdevlife.blogspot.in/2011/06/crm-2011-setting-state-from-jscript.html

    for create sample refer: http://msdn.microsoft.com/en-us/library/gg490659


    Mahain : Check My Blog
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • Monday, May 28, 2012 11:23 AM
     
     
    I still dont understand how to figure out and how to start   )-:
  • Tuesday, May 29, 2012 6:53 AM
     
     
    Anyone know how to write javascript code to disable status and create record of entity ?