Microsoft Dynamic CRM 2011 - javascript function to disable the status of current entity and create related lead record.
-
lunes, 28 de mayo de 2012 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 !!
- Editado Dynamics CRM 31 lunes, 28 de mayo de 2012 8:54
Todas las respuestas
-
lunes, 28 de mayo de 2012 8:49Moderador
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. -
lunes, 28 de mayo de 2012 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 ?
-
lunes, 28 de mayo de 2012 10:10Moderador
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. -
lunes, 28 de mayo de 2012 11:23I still dont understand how to figure out and how to start )-:
- Editado Dynamics CRM 31 lunes, 28 de mayo de 2012 11:24
-
martes, 29 de mayo de 2012 6:53Anyone know how to write javascript code to disable status and create record of entity ?