Category Archives: JS Script

Implementing Reason for Delete in D365 CE

Requirement In Dynamics 365 Customer Engagement (CE), managing data is crucial for maintaining a clean and efficient database. When we delete records, out of the box auditing feature can help to see audit information of the deleted record but what if we want to see the reason why this record was deleted?. With a simple customization, we can implement this… Read more »

Check Parent Entity Name From Child entity form D365 CE

Requirement Add validation on child entity form based on parent entity. Details Sometimes we want to check name of the parent entity in the child entity quick create form for validation. We can use JavaScript for this validation. For the demo let’s say when someone will try to create contact record from subgrid under Account we want to display a… Read more »

Creating RSS Feed Dashboard in Microsoft Dynamics CRM 2013: Part 3

This is our last post to create a RSS feed dashboard in Microsoft Dynamics CRM 2013. Please check our previous posts to create a RSS feed web resource for Microsoft Dynamics CRM Team blog and Twitter user account. In this post we will use these web resources in our dashboard. Please follow our previous post to get RSS feeds and create web resources for… Read more »

Show Loading message during function execution in CRM Form

I found one question in CRM Development form where user asked to show some processing message during long function execution, we have done this in many projects, so I thought to write this post so that it can be help CRM developers. if you are doing some processing or calling any webservice which is taking time to execute and you want to… Read more »

Get Max value using Javascript

 If you want to fetch Max value from CRM entity record using Javascript, you can use below code, remember to change entity and field name accordingly var authenticationHeader = GenerateAuthenticationHeader(); // Prepare the SOAP message. var xml = “<?xml version=’1.0′ encoding=’utf-8′?>”+ “<soap:Envelope xmlns:soap=’http://schemas.xmlsoap.org/soap/envelope/’”+ ” xmlns:xsi=’http://www.w3.org/2001/XMLSchema-instance’”+ ” xmlns:xsd=’http://www.w3.org/2001/XMLSchema’>”+ authenticationHeader+ “<soap:Body>”+ “<RetrieveMultiple xmlns=’http://schemas.microsoft.com/crm/2007/WebServices’>”+ “<query xmlns:q1=’http://schemas.microsoft.com/crm/2006/Query’”+ ” xsi:type=’q1:QueryExpression’>”+ “<q1:EntityName>EntityName</q1:EntityName>”+ //change entity name “<q1:ColumnSet… Read more »

Run exe from MS CRM 4.0

Mahender   September 22, 2010   4 Comments on Run exe from MS CRM 4.0

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 »

Attach onclick event with MS CRM CRM checkbox

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 »

Remove Picklist option based on Security Roles

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 »

Format Left Navigation Item

Today I found one question in MS CRM Development Forum to format Left navigation item, we can easily do this with JS. Just use below code on form load. I have tested this in contact form to form “More Addresses” var Item=document.getElementById(‘navAddresses’); if(Item!=null){ Item.style.fontWeight = ‘bold’; Item.style.color = ‘#ff0000’;} and result will be  as below