Sometime we need to create “Opportunity Relationship” record through code. We can use below code to create Opportunity relationship record. Basically we need to set three values while creating opportunity relationship record customerid, opportunityid and opportunityroleid. //I have used Dynamic entity to create opportunity relationship record DynamicEntity _OpportunityRelationship = new DynamicEntity(); //Set entity name as “customeropportunityrole” _OpportunityRelationship.Name = “customeropportunityrole”; //Create… Read more »
Just want to share with you all that I won Dynamics CRM MVP award. It is great honor to me and I would like to thank Microsoft and Dynamics CRM community for this recognition. Special thanks to Jim to submit my nomination for this great honor. I would like to thank all my friends,my family members,my colleagues for their cooperation and help to… Read more »
If you are looking to run .exe from MS CRM 4.0, then you can do this easily. You can create a ISV button on MS CRM form and create on global function on formonload can call it in ISV button JS.. you can write below code to run .exe var _Object=new ActiveXObject( “WScript.Shell” ) ; _Object.Run(“C:\WINDOWS\system32\calc.exe” ); you can also pass… Read more »
I have seen many developers facing issue of infinite loop while using update method inside update plugin. I know it could be requirement specific, to use update method inside update plugin. But sometime we can void infinite issue, there is no need of calling update method. You could play with inputparmeter propertybag. For example sometime we have requirement to calculate… Read more »
sometime we need to perform some action when activity is closed in MS CRM.In that case you have to capture close activity event, you can do this using event.Mode property in onsave event. you just have to write below code. if(event.Mode==5) //Close activity event { //you code to implement your logic } Enjoy !!!
As you know that we can set control formatting of bit field to use it as checkbox. But only changing formatting does not make it to behave like a checkbox because of onchange event. Let take an example for this, like we have one field “Calculate Value” and we want to calculate some value on the selection of this bit… Read more »
Most of the client asks for this requirement. They want to hide picklist options based on security roles. Let’s take an example for this, for example if we have picklist “Customer Status” having four option like “Request for Approve”,”Approved”,”Rejected”,”Black Listed”. Let’s say we have requirement to show only first option to all users having security roles other then “System Admin”…. Read more »
when you will try to assign integer value to nvarchar attribute in MS CRM like below var IntVal=10; Let’s say we have one field named “ABC” having nvarchar datatype crmForm.all.ABC.DataValue=IntVal; you will get error “This control only accepts strings or null as input”. to solve this issue you can use toString() method of JS like below crmForm.all.ABC.DataValue=IntVal.toString(); Enjoy !!!
I know most the developers use CRM VPC for their development work, so I thought to provide them link to download latest MS CRM 4.0 VPC, But remember you can download it only if you are microsoft partner Here are the link for download CRM 4 July 2010 VPC.part01.exe CRM 4 July 2010 VPC.part02.rar CRM 4 July 2010 VPC.part03.rar CRM 4 July… Read more »
After creating CRM environment, now it’s time to start our development.Sometime we need to implement some new functionality in CRM that CRM does not provide OOB. Then crm customization and development comes in picture, so basically we can say that CRM development is a result of our CRM Extension plan. Dynamics CRM is a highly extendable application, we can extend it… Read more »