Microsoft Dynamic CRM 2011 - javascript function to disable the status of current entity and create related lead record.
-
2012. május 28. 6:53
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 !!
- Szerkesztette: Dynamics CRM 31 2012. május 28. 8:54
Az összes válasz
-
2012. május 28. 8:49Moderátor
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. -
2012. május 28. 8:56
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 ?
-
2012. május 28. 10:10Moderátor
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. -
2012. május 28. 11:23I still dont understand how to figure out and how to start )-:
- Szerkesztette: Dynamics CRM 31 2012. május 28. 11:24
-
2012. május 29. 6:53Anyone know how to write javascript code to disable status and create record of entity ?