Auditing of Export to Excel in Dynamic CRM 2011/2013

Few days before I had a request from a customer that whether it is possible to find out what data(might be confidential) has been exported by a user on a specified date (for tracking or to catch culprit) on a specified date or over a period of time…The  first thing which came into my mindContinue reading “Auditing of Export to Excel in Dynamic CRM 2011/2013”

Show MS CRM 2011/2013 Optionset values in Dropdownlist in Asp.net

I’m feeling really happy while writing this blog, because i have been too busy from last couple of months to write even a single blog. From now on, I’m hoping to keep this activity continued. Few days back i got a very interesting requirement from one of my customer to show OptionSet values in dropdownlist in asp.net.SoContinue reading “Show MS CRM 2011/2013 Optionset values in Dropdownlist in Asp.net”

MSCRM 2011/2013 – Add Logo to CRM forms

Hello everyone today i am going to share one of the very interesting requirement that most of MSCRM guys would have faced or might be get during customization of MSCRM form… Mostly various Customers and Clients needs to see their own Company/Organisation logo in CRM.So today\’s we are going to implement the same… Below areContinue reading “MSCRM 2011/2013 – Add Logo to CRM forms”

Dynamics CRM 2013 / 2011 – On Custom ribbon button click, create a new record, and open this newly created record

In this post I would like to explain how to create a new record and open the same on click of custom ribbon button in Dynamics CRM. The steps are as following: 1. Create a custom ribbon button on a specific entity, the source entity. Use the Ribbon Workbench tool or by import export theContinue reading “Dynamics CRM 2013 / 2011 – On Custom ribbon button click, create a new record, and open this newly created record”

Convert QueryExpression to FetchXML and FetchXML to QueryExpression in MSCRM

It might a very common requirement that sometimes you need to convert FetchXMl to QueryExpression and Vice-Versa. Today i am going to share the same with all of you. Query Expression to Fetch XML : QueryExpression query = new QueryExpression();              query.EntityName = \”contact\”;            Continue reading “Convert QueryExpression to FetchXML and FetchXML to QueryExpression in MSCRM”

How to Create Log File in MSCRM using c#

Sometimes you might have the requirement to create log file while writing code either in Plugin or Custom Workflow or in web service etc to trace and keep the generated error.There might be a other option as well to keep it but here i am going to show Error Log in Text file.In this blogContinue reading “How to Create Log File in MSCRM using c#”

XML Parser to get List of All Elements, Attribute Name & Attribute Value

Function to Get Element List of XML :  public List<string> getElements(string xmlfile)         {             List<string> ElementList = new List<string>();             XmlReader reader = XmlReader.Create(new StringReader(xmlfile));             while (reader.Read())             {  Continue reading “XML Parser to get List of All Elements, Attribute Name & Attribute Value”

JavaScript Functions in MSCRM

Find below link to see Javascript functions of MSCRM 2011 : https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCEQFjAA&url=http%3A%2F%2Fasimsajjad.googlecode.com%2Ffiles%2FMSCRM%25202011%2520JavaScript%2520Development%2520Cheat%2520Sheet.pdf&ei=V8iWU_fKHYi0uAS67oDQCQ&usg=AFQjCNG4-TJeUfownUunDE66hIknAwtIeQ&sig2=7-flBxrlAzOsVrwEENeGQw&bvm=bv.68445247,d.c2E&cad=rja

Entity Logical Name and Entity Schema Name in MSCRM 2011

When we create an Entity, What is the difference between Entity Schema Name and Entity Logical Name ? When we are creating an entity, at that time, the Name we give is its schema name. When we save this entity the schema name also becomes the logical name. So entities have two names; logical nameContinue reading “Entity Logical Name and Entity Schema Name in MSCRM 2011”

Association and DeAssociation of Records in MSCRM

Recently, I got one requirement to Associate a Contact Record with Three Account Records. Below is the code to Associate a Record with Multiple Records // Associate the accounts to the contact record.// Create a collection of the entities that will be // associated to the contact. EntityReferenceCollection relatedEntities = new EntityReferenceCollection();relatedEntities.Add(new EntityReference(Account.EntityLogicalName, _account1Id));relatedEntities.Add(new EntityReference(Account.EntityLogicalName,Continue reading “Association and DeAssociation of Records in MSCRM”