Apurv's D365 Blog

Code Samples & Troubleshooting Tips on Dynamics 365 (CRM) and Portals

Dynamics 365 – WebAPI Crud Operations (JavaScript)

Hey Guys, It’s been a while since I’ve posted. I know for sure this is late. I think it would be helpful to see basics items on WebAPI (using JavaScript). The article today talks about the CRUD (Create, update, read and delete) operations using WebAPI endpoints. You must have working experience in below areas: –… Read more

WebAPI Series 1 – Using Jscript to update record attributes

Hey Folks, Since the launch of CRM 2016 we have been officially using WebAPI which is something the coolest. I’m not going to talk much here about this but have developed a sample for quick use. The sample is used for updating an account record.   function Test() { var clientUrl = Xrm.Page.context.getClientUrl(); var req… Read more

Enable/Disable out of the box ribbon items

Hello Guys, I have come up with an interesting article on enabling/disabling the out of box ribbon items in CRM 2011. This article demonstrates the order entity where I would be disabling the “Create invoice button” based on a condition in jscript. The script returns “false” or “true” value. Before we get started, here’s the… Read more

Debugging CRM scripts using IE developer tool

Hello people, I dedicate this post to our newest developers using jscript in CRM. I have added steps on how you can debug your scripts with events like OnLoad, OnSave and OnChange. The process of using IE developer doesn’t change but I have customized it to CRM level. Requirements Internet Explorer (7.0 or above) CRM… Read more

Jscripts snippets for CRM 2011

I have tried to outline couple of examples that you could use in CRM. These examples are based on Xrm patterns which tells you how you can utilize the resources available in better way. These are newly introduced in CRM 2011. The whole idea is to put together a set of common functions as an… Read more