Microsoft Dynamics CRM

Role Based Views in Dynamics CRM – New version released

Hi All, Finally got some time around to work on the bug fixes in the my codeplex tool ‘Role Based Views in Microsoft Dynamics CRM’. The new version has been uploaded in codeplex site- https://rolebasedviews.codeplex.com Thanks everyone for the huge downloads and making the tool so popular. What’s fixed in this version Error in the …

Role Based Views in Dynamics CRM – New version released Read More »

Auditing Team Membership table in Dynamics CRM

Before you start reading this, please note that although the title says auditing of team membership table, it strictly does not cover all audit scenarios. However this article will help you to track some stuffs in team membership table that would be of help in some scenarios. Recently in my project, customer walked up to …

Auditing Team Membership table in Dynamics CRM Read More »

Using DIFFINDAYS to auto calculate age of a contact – Dynamics CRM 2015 Online Update 1

First of all, from the title this seems trivial isn’t it. After all as CRM consultant we do so many complex stuffs and calculating the age of a contact is just so simple! However the point I wanted to highlight here is to use the DIFFINDAYS and host of other functions introduced in Business Rules …

Using DIFFINDAYS to auto calculate age of a contact – Dynamics CRM 2015 Online Update 1 Read More »

Programmatically change the Business Unit of a Team in Dynamics CRM

We had this requirement recently where we need to change the business unit of teams programmatically. Seemed quite easy since I already had the experience of the using SetBusinessSystemUserRequest while changing the business unit of the user. Hence we assumed that there would be some message likewise for changing Business Unit of the teams also. …

Programmatically change the Business Unit of a Team in Dynamics CRM Read More »

{Dynamics CRM} Xrm script snippets for Visual Studio. Client side Dynamics CRM development made fast and easy

If you are a Microsoft Dynamics Consultant you are sure to play dirty with the Xrm.Page object model. The client side model of Dynamics CRM is gaining strength with each release and with more and more functions added to the kitty, it becomes really hard for the developers to keep stock of everything new that …

{Dynamics CRM} Xrm script snippets for Visual Studio. Client side Dynamics CRM development made fast and easy Read More »

{Dynamics CRM Plugins + External assembly} Using external un-signed assemblies in plugin project

Have you ever faced this situation where your plugin or workflow assembly is referencing some utility assembly for which you do not have the code base. Well we had this situation very recently where we were required to refer to some external utility dll to perform some operations. The problem we had is we did …

{Dynamics CRM Plugins + External assembly} Using external un-signed assemblies in plugin project Read More »

{Dynamics CRM 2015 business rules }Why are my Business Rules not executing on the server side

Exploring the new features that came along with Dynamics CRM 2015 is fun indeed and what can be more fun than getting a chance to implement that in real time project. While going through the new features sometimes we tend to miss out on the small nuances that would actually make the new stuff to …

{Dynamics CRM 2015 business rules }Why are my Business Rules not executing on the server side Read More »

Disable a composite control’s individual element in Dynamics CRM

Just the other day we had a requirement from the client where the in the contact form, if the user enters the zip code, state and the City would be populated automatically based on the zip code entered and the user should not be able to edit the state and the City fields. Simple isn’t …

Disable a composite control’s individual element in Dynamics CRM Read More »

{Dynamics CRM web resource} Using HTML 5 session storage feature in Dynamics CRM web resources

Looking at the title of the topic, you must be wondering, is it something really related to Dynamics CRM. Well I would say a big Yes. Because it is an excellent HTML 5 feature and we develop HTML 5 webresources in our day-day activities. Being a dynamics crm consultant we sometimes  tend to miss out …

{Dynamics CRM web resource} Using HTML 5 session storage feature in Dynamics CRM web resources Read More »

{dynamics crm clone record} Using Xrm.Utility.openEntityForm to clone all fields of one record to another in Dynamics CRM.

Looking at the title of the topic, you must be wondering what’s new in here. I think many of us by this time already know that we can clone one record of an entity to create another record easily using the  Xrm.Utility.openEntityForm method. For e.g suppose we have an account record and we have a …

{dynamics crm clone record} Using Xrm.Utility.openEntityForm to clone all fields of one record to another in Dynamics CRM. Read More »

Microsoft Dynamics CRM Error Dialog – using Xrm.Internal.openErrorDialog

By this time many of you might have already explored the Xrm.Internal namespace and displayed your custom webresources in CRM 2013/ 2015 modal style. Well, if you have not, I suggest you check my blog post https://debajmecrm.com/exploring-the-xrm-internal-namespace-in-crm-2013/ to explore the Xrm.Internal namespace and i bet you would like it. Coming back to the topic, if …

Microsoft Dynamics CRM Error Dialog – using Xrm.Internal.openErrorDialog Read More »

{Dynamics CRM} Create a view in Dynamics CRM that shows UNION of results

Recently we had a requirement where we needed to create a view in Dynamics CRM that shows a UNION of results. To explain it in a more detailed way, let me explain the scenario. We had a custom entity called Opportunity group and under Opportunity Group we had multiple opportunities. Opportunity entity had four custom …

{Dynamics CRM} Create a view in Dynamics CRM that shows UNION of results Read More »

{Dynamics CRM Error} Error in Microsoft Dynamics CRM email router – Could not verify the version of Microsoft Dynamics CRM.The requested organization service could not be activated.

Recently we started noticing this error in the event log  for Microsoft Dynamics CRM Email Router. After a bit of research, we found that the issue was occurring because from the authentication providers, of Microsoft Dynamics CRM website, the Negotiate provider was removed. So we had to add the Negotiate provider back. The following are …

{Dynamics CRM Error} Error in Microsoft Dynamics CRM email router – Could not verify the version of Microsoft Dynamics CRM.The requested organization service could not be activated. Read More »

Displaying On Demand Workflows in sorted order in Dynamics CRM 2013

Recently we had a requirement where we needed to display a specific set of on demand workflows in a specific order for a particular entity. Well is this possible? In a supported way? The answer is No. However if your customer is hell bent on this, you can try the below unsupported approach. This solution …

Displaying On Demand Workflows in sorted order in Dynamics CRM 2013 Read More »

{Dynamics CRM Fix} Idiosyncrasies while dealing with Business Process flows in CRM 2013/ 2015.

Looking at the title of the topic, you must be thinking that I am going to discuss any bug in Business process flows. Well not exactly. However there are some situations where using business process flows can lead to confusing errors. Lets see such an example. Let’s say you have a requirement where progression from …

{Dynamics CRM Fix} Idiosyncrasies while dealing with Business Process flows in CRM 2013/ 2015. Read More »

Reload an entity form in Dynamics CRM 2013/ 2015

From CRM 2013 onwards, many a times we need to reload an entity form since from CRM 2013 after saving of the record, the entire page does not refresh. And frequently to do this, I have come across use of window.location.reload method to do the same. Off course there are ways to asynchronously update the …

Reload an entity form in Dynamics CRM 2013/ 2015 Read More »

Where has my option “Allow e-mail router to use my credentials to send e-mail on my behalf” gone is CRM 2013?

This is exactly the same question that my customer had when they upgraded to CRM 2013. In CRM 2011, they could go to Personal Options and in the E-Mail tab could see the following screen If they check the option “Allow E-mail router to use my credentials to send and receive e-mail on my behalf”, …

Where has my option “Allow e-mail router to use my credentials to send e-mail on my behalf” gone is CRM 2013? Read More »

Dynamics Record URL does not contain Organization Name in CRM 2013 SP1 – Will be fixed in UR2 of 2013 SP1

My client is on Dynamics CRM 2013 SP1 UR1 and they are facing this problem for their multi-org on-premise deployment. They have a pretty simple workflow on the account entity where they are sending an e-mail and in the e-mail body they are inserting a hyperlink to the account record. The problem is that when …

Dynamics Record URL does not contain Organization Name in CRM 2013 SP1 – Will be fixed in UR2 of 2013 SP1 Read More »

{Dynamics CRM 2013} Clear out field value using Dynamics CRM 2013 Business Rules? Yes you can!

Business rules are great. Aren’t they? But how many implementations I have seen where customers initially were so much excited about no code development using business rules and finally they found that very simple stuffs cannot be achieved using Business Rules and finally they end up disappointed. I faced a very similar situation recently. I …

{Dynamics CRM 2013} Clear out field value using Dynamics CRM 2013 Business Rules? Yes you can! Read More »

{Dynamics CRM} Are Business Rules created as process records in CRM?

First all, let me give an answer to title of the post. Yes it is! For people who already know this, this is as far as you need to read this post :). However is my day-day project implementations, I come across many technical consultants who are not aware of the underlying implementation of Business …

{Dynamics CRM} Are Business Rules created as process records in CRM? Read More »

{Business Process flow Security} – Security consideration while targeting business process flows and switching processes for security roles.

Business process flows are everywhere these days. Every project I come across have business process flows implemented and why not? A great feature indeed. However came across this  very interesting question that one of my client administrators came up with regarding the security aspect of Business Process flows. The following describes the set-up for client …

{Business Process flow Security} – Security consideration while targeting business process flows and switching processes for security roles. Read More »

{dynamics crm 2013 SP1} What happens internally when dynamics CRM 2013 SP1 is installed.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt USD-9992277 ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. By this time many of you might have already installed CRM 2013 SP1 and must have used some …

{dynamics crm 2013 SP1} What happens internally when dynamics CRM 2013 SP1 is installed. Read More »

How to make sure that deactivated entity does never show up to the user in Microsoft Dynamics CRM 2013

This interesting issue came up for one of our customers when we upgraded their environment from CRM 2011 to CRM 2013. After upgrade they decided to go ahead with 2013 layout of the forms. Hence we de-activated the Information forms that came from 2011 and made sure that end-users use the CRM 2013 forms. For …

How to make sure that deactivated entity does never show up to the user in Microsoft Dynamics CRM 2013 Read More »

Using Quick View form in CRM 2013 to show filtered set of related records.

Recently we had a requirement in our project where on the opportunity form, when the sales manager selects the account, the system should show the list of activities related to the account. The requirement looked very interesting and the first thing that came to our mind is to utilize the Quick View form to achieve …

Using Quick View form in CRM 2013 to show filtered set of related records. Read More »

Can’t stop myself from sharing through my blog – Tool to generate early bound classes using CrmSvcUtil.exe.

Recently I had a requirement to filter out some of the entities and optionsets while generating early bound classes using CrmSvcUtil.exe. I was almost done writing my custom code for that when my colleague pointed me towards this wonderful tool in codeplex. The link for this tool is available for download from the following codeplex …

Can’t stop myself from sharing through my blog – Tool to generate early bound classes using CrmSvcUtil.exe. Read More »

The type Microsoft.Crm.Web.Reporting.CrmReportServerConnection, Microsoft.Crm.Application.Pages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 does not implement IReportServerConnection or could not be found

We encountered this error recently when we upgraded from CRM 2013 to CRM 2015. We had our plugin where we used to execute a custom SSRS report and get the byte content of the report and create an attachment for an entity. For this we had a reference to the Microsoft.ReportView.WebForms dll v 10.0 The …

The type Microsoft.Crm.Web.Reporting.CrmReportServerConnection, Microsoft.Crm.Application.Pages, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 does not implement IReportServerConnection or could not be found Read More »

Open Advanced Find from Anywhere in Dynamics CRM 2013

Our customer recently upgraded from CRM 2011 to CRM 2013 and one of the very first concerns that the customer faced is they were missing advanced find from the record view. Every time they wanted to open advanced find, they had to go back to the Grid View of the records and open advanced find. …

Open Advanced Find from Anywhere in Dynamics CRM 2013 Read More »

{Dynamics CRM Plugins Impersonation} Identify which for your plugins are running under impersonation

Recently we upgraded one customer from their CRM 2011 to CRM 2013 environment. During the process of upgrade and new features implementation, we were developing in separate environment while the existing customer system was still going on. Just before going live with the upgrade, our client informed us that there had been considerable number of …

{Dynamics CRM Plugins Impersonation} Identify which for your plugins are running under impersonation Read More »

{Dynamics CRM 2015 Error} – Changing security attributes is not allowed in stage 20 plugins

Recently we upgraded from CRM 2013 SP1 to CRM 2015 version for our customer. We have upgraded to CRM 2015 on the first access (FA) version of 2015 that our customer had from Microsoft. However after upgrading to CRM 2015 and doing a quick sanity check on the environment, we started getting the following error …

{Dynamics CRM 2015 Error} – Changing security attributes is not allowed in stage 20 plugins Read More »

Understanding how SLA’s work in CRM 2013. Effects of change in SLA details or deactivation of SLA on a case.

In think by this time, many of you must already have used the SLA feature that came with CRM 2013 SP1. Hence i am not going to explain here what that feature is and how can we use it for our implementations. Rather I would like to share my answers to the common questions that …

Understanding how SLA’s work in CRM 2013. Effects of change in SLA details or deactivation of SLA on a case. Read More »

Dynamics CRM 2013 – Client API’s to interact with Business Process Flows

While implementing Business Process flows for our customers, how I wished for if Microsoft had provided Client API’s to deal with the Business Process Stages. How easily I could have implemented some of the requirements that customers asked me regarding Business Process flows. I am sure that many of you have wished if we could …

Dynamics CRM 2013 – Client API’s to interact with Business Process Flows Read More »

Error with Xrm.Page.context.getServerUrl() in CRM 2015

Recently we have upgraded our client environment to CRM 2015 and our first observation after upgrade was that none of SDK calls through the custom javascript methods was working. After debugging, we found that there was some common function to get the server url and it was getting it through Xrm.Page.context.getServerUrl(). Although getServerUrl() was already …

Error with Xrm.Page.context.getServerUrl() in CRM 2015 Read More »

CRM 2013 SP1 Duplicate Detection Bug – Really a bug or expected framework behavior?

As many of us know, with CRM 2013 SP1, duplicate detection is back. Personally I liked it a lot because you can avoid potential duplicates just through configuration without writing plugins and also you get an option to continue with the duplicate record or to perform actions like merge on the duplicate records, So came …

CRM 2013 SP1 Duplicate Detection Bug – Really a bug or expected framework behavior? Read More »

Workflow Enhancements in CRM 2013 SP1

With CRM 2013 SP1 release, everybody is talking a lot regarding the new service module enhancements like Case Hierarchies, Entitlements, SLA’s to name a few. Along with these fantastic features also came some new improvements in the workflow designer which can help a lot developing workflows. That is the Workflow Conditions where we can now …

Workflow Enhancements in CRM 2013 SP1 Read More »

Configure Quick create form to launch directly from sub-grid when New button click instead of the lookup view – CRM 2013

While delivering trainings in Microsoft Dynamics CRM, frequently  i keep getting the question – “When Quick create has been enabled for an entity and when the ‘+’ sign of the entity sub-grid is clicked, sometimes CRM throws a lookup and sometimes it opens directly the Quick Create form”. What causes this behavior?The answer is simple. …

Configure Quick create form to launch directly from sub-grid when New button click instead of the lookup view – CRM 2013 Read More »

CRM 2013 WORKFLOW BUG – This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application

Recently in my project, I encountered this error while importing one of the workflows from DEV. to QA. Environment When we tried to publish the workflow in the QA environment we got the following error. This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application. Your …

CRM 2013 WORKFLOW BUG – This workflow cannot be created, updated or published because it was created outside the Microsoft Dynamics CRM Web application Read More »

Disable SSL check for enabling Data Encryption in CRM 2013

By now many of you might have already worked with Data encryption feature in CRM 2013. In case you are not aware of this new feature, I suggest you go through the following link. https://community.dynamics.com/crm/b/crminogic/archive/2014/03/27/data-encryption-in-crm-2013.aspx Isn’t it really simple to just go to Settings->Data Management  and enable Data Encryption with the key of your choice. …

Disable SSL check for enabling Data Encryption in CRM 2013 Read More »

Get PrivUserGroup specific to your CRM Organization in Microsoft Dynamics CRM

Hi, recently in my project, I had a requirement to enable Data encryption feature that is new to CRM 2013. While enabling and proving the key, we got an error – “The user account for enabling Data Encryption should be a member of the PrivUserGroup in active directory. We had to contact our AD support …

Get PrivUserGroup specific to your CRM Organization in Microsoft Dynamics CRM Read More »

Issue with Dynamics CRM 2013 SP1 upgrade after database import through CRM import wizard.

Recently in my project, i had to prepare a demo where we were going to show to the customers, the new service module enhancements. Since we needed our existing data to show the demo, we took a backup of our dev. environment and then restored into our POC environment. Since our dev. environment was with …

Issue with Dynamics CRM 2013 SP1 upgrade after database import through CRM import wizard. Read More »

Customization changes in Microsoft Dynamics CRM not working with latest version of Chrome

Cross browser support in Microsoft Dynamics CRM was a great feature. Wonderful isn’t it that you can open most of the browser(s) (check for the supported list in MSDN) and your CRM would continue to work seamlessly. And in recent months, I find lot of users have shifted to Chrome while they browse CRM. But …

Customization changes in Microsoft Dynamics CRM not working with latest version of Chrome Read More »

How to get name of the Logged in user in Microsoft Dynamics CRM 2013

In Microsoft CRM 2011, many a times we used had to get the name of the logged in user using client side script. Xrm.Page.context.getUserId() used to give us the guid of the user. But alas as simple as it may sound, getting the user name meant to query the user entity with the guid and …

How to get name of the Logged in user in Microsoft Dynamics CRM 2013 Read More »

Using getClientUrl() in CRM 2013 and how is is different from getServerUrl() – Microsoft Dynamics CRM

Recently in my training sessions, i am coming up with this question very frequently. Hence thought of sharing. I am pretty sure that many of you might already know this by now. However this post might be of help to somebody trying their first hands on CRM 2013 and having this question in mind. First …

Using getClientUrl() in CRM 2013 and how is is different from getServerUrl() – Microsoft Dynamics CRM Read More »

{Error} Public assembly must have public key token – Microsoft Dynamics CRM

Hi, Faced this error very frequently during my early days with MSCRM. With all my enthusiasm, I would build a plugin and register it in my CRM. Oops! The plugin registration tool throws me an error. Once of the reason why this error is being thrown is probably because you have forgot to sign the plugin …

{Error} Public assembly must have public key token – Microsoft Dynamics CRM Read More »

{Tool} – Configure field level security for security roles in Microsoft Dynamics CRM.

Field level security introduced in Microsoft Dynamics CRM 2011 is simply a WOW feature to me. I just implemented it in so many projects with success and finally one fine day i had one customer who wanted to implement this based on the security roles. Well that’s the beauty of consulting isn’t it. We come …

{Tool} – Configure field level security for security roles in Microsoft Dynamics CRM. Read More »

Left Join with Not-in operator in FetchXml in Microsoft Dynamics CRM 2013

Just the other day, I was discussing with one of my colleagues about his experience of building fetch xml reports for one online implementations and we stumbled upon the topic where he needed to show the list of accounts with no cases associated to it. With SSRS reports it’s just a simple query. However for …

Left Join with Not-in operator in FetchXml in Microsoft Dynamics CRM 2013 Read More »

Switch Forms in Microsoft Dynamics CRM depending on Business Logic

Recently in our project, we had a requirement where the customer wanted to show different forms of the same entity depending on some business logic. Off-course we could design the form with multiple sections with appropriate fields and show/ hide the sections based on business logic. However if the above approach does not suit you, …

Switch Forms in Microsoft Dynamics CRM depending on Business Logic Read More »

{Tips &Tricks} Add borders to fields on form in Dynamics CRM 2013

We upgraded recently to Dynamics CRM 2013 and after upgrade one of the feedbacks that came from our customer was that when the form loads for this first time, the fields are clearly not distinguishable. Off course they were talking about the new feature in Dynamics CRM 2013 where the controls are highlighted on the …

{Tips &Tricks} Add borders to fields on form in Dynamics CRM 2013 Read More »

Dashboard Chart Exporter in Microsoft Dynamics CRM 2013.

Ever faced the requirement where your customer has asked to export the charts in your CRM Dashboard so that they could embed them in their PPTs. Off-course you can ask your customer to enlarge your charts and then take a clip of the chart and save it as file. I have developed a tool that …

Dashboard Chart Exporter in Microsoft Dynamics CRM 2013. Read More »

{Scenarios} – Registering plugins when a user is added to Team in Microsoft Dynamics CRM.

Well if you are reading this topic and thinking that there is already a whole lot of information available on how to register a plugin when a user is added to a team, then why this post again. Yes you are right. But I could see there is some incomplete information in many of the …

{Scenarios} – Registering plugins when a user is added to Team in Microsoft Dynamics CRM. Read More »

Exploring Microsoft Dynamics CRM system Js files

For a long time doing this, however thought of sharing this to all you guys. CRM does a lot of whole lot of functionalities using these javascript files. When do we really need to explore these system files functions. Well as a CRM consultant, frequently i have faced scenarios where the customer is very adamant …

Exploring Microsoft Dynamics CRM system Js files Read More »

Close Quick Create Form in Microsoft Dynamics CRM 2013.

Recently in my project, I came across a requirement where the customer would launch the quick create form and when he clicks on the Save button, our CRM system would perform complex business functions and show a pop-up to the user with a list of available options. If the user selects one of the options …

Close Quick Create Form in Microsoft Dynamics CRM 2013. Read More »

Call plugin from Javascript in Microsoft Dynamics CRM.

Wanted to share with you all a very interesting way to call plugins from you client side code in Microsoft Dynamics CRM to perform complex operations.Recently in our project  we had a requirement to determine duplicates for an entity based on some very complex business rules with integration from external system. Surely we can call …

Call plugin from Javascript in Microsoft Dynamics CRM. Read More »

{Dynamics CRM} How to execute RetrieveMultiple request from Javascript

Frequently in our CRM projects we need to retrieve multiple records for some entity based on some conditions. We have the OrganizationDataService to achieve that. However with the OrganizationDataService we cannot write complex joins and many other stuffs what we can achieve through fetchxml. What if we could utilise the the power of fetchxml from …

{Dynamics CRM} How to execute RetrieveMultiple request from Javascript Read More »

View Personal Views created by other users in Microsoft Dynamics CRM

Frequently in our project, we receive issues from our users complaining that they have created a personal view for their chart. However the chart is not showing any data. The only option we have left then is a screen sharing session with the user to check the filters of his/ her personal views or to …

View Personal Views created by other users in Microsoft Dynamics CRM Read More »

User Missing prvReadComplexControl privilege Error in Microsoft Dynamics CRM

Recently in our project we faced this error. Users of our system were getting this whenever they were trying to create/ update a contact. The error seems to talk about some complex control in CRM to which the user does not have read privilege. Perplexed that you never heard of any ComplexControl entity in CRM? …

User Missing prvReadComplexControl privilege Error in Microsoft Dynamics CRM Read More »

Understanding currency field in Microsoft Dynamics CRM

The currency field of CRM is something that we use in almost every project. However I find that there is always some confusion related to this currency field because of the way CRM handles it. Let us see exactly what happens when you create a currency field in CRM. I have a custom entity called …

Understanding currency field in Microsoft Dynamics CRM Read More »

Logging in CRM entity in Microsoft Dynamics CRM

The tool is available for download at the codeplex site: https://enterpriselogger.codeplex.com/. The entire documentation of the tool and how to use it can be found in the documentation tab in the codeplex site. In case you want to keep reading this blog, I suggest you go back to the link:  https://debajmecrm.com/enterprise-logger-for-microsoft-dynamics-crm/ and gather an idea …

Logging in CRM entity in Microsoft Dynamics CRM Read More »

Logging in custom database in Microsoft Dynamics CRM

The tool is available for download at the codeplex site: https://enterpriselogger.codeplex.com/. The entire documentation of the tool and how to use it can be found in the documentation tab in the codeplex site. In case you want to keep reading this blog, I suggest you go back to the link:  https://debajmecrm.com/enterprise-logger-for-microsoft-dynamics-crm/ and gather an idea …

Logging in custom database in Microsoft Dynamics CRM Read More »

Logging in EventViewer in Microsoft Dynamics CRM

The tool is available for download at the codeplex site: https://enterpriselogger.codeplex.com/. The entire documentation of the tool and how to use it can be found in the documentation tab in the codeplex site. In case you want to keep reading this blog, I suggest you go back to the link: https://debajmecrm.com/enterprise-logger-for-microsoft-dynamics-crm/ and gather an idea …

Logging in EventViewer in Microsoft Dynamics CRM Read More »

Error Logging in Microsoft Dynamics CRM

Would like to share with you all a tool which I have built for logging in Microsoft Dynamics CRM. The tool works for both CRM 2011 and CRM 2013 versions of on-premise/ IFD/ Office 365 environment. It also gives you the option to perform the log operation in File/ Eventviewer/ Custom Database/ CRM entity as …

Error Logging in Microsoft Dynamics CRM Read More »

{Dynamics CRM} Programatically Assign privilege to security role for an entity in MSCRM

Recently in my project, I had a requirement where I needed to assign security privilege to all the roles in the system to a custom entity Programatically. Let’s see how we can achieve the same. Whenever a custom entity is added in CRM, CRM internally created eight privilige records for the entity for the privileges …

{Dynamics CRM} Programatically Assign privilege to security role for an entity in MSCRM Read More »

{Dynamics CRM} Not getting latest Text field value on click of custom ribbon button in CRM 2013

Recently in my project, I was faced with the above problem. The exact scenario is explained below. I have a text field for entering the Device Id in CRM. The user enter a value in the textbox and clicks on the the ‘Determine 54-90’ custom ribbon button without tabbing out from the textbox as shown …

{Dynamics CRM} Not getting latest Text field value on click of custom ribbon button in CRM 2013 Read More »

{Dynamics CRM Web Resources} Show Attachments for an entity in Custom Webresource in Microsoft Dynamics CRM

Recently in our project we had a requirement where we needed the attachments for an entity in a custom webresource so that when the user clicks the attachment it downloads. For that first of all you would need to get the attachmentid by querying the annotations which are of type attachment for the entity. Once …

{Dynamics CRM Web Resources} Show Attachments for an entity in Custom Webresource in Microsoft Dynamics CRM Read More »

Role based view in Microsoft Dynamics CRM

Many of must be having the requirement of configuring role based views in CRM. For e.g – say a person with salesperson security role should have ‘Active contacts’ as the default view for the contact entity. Like wise there might be requirement where you would need to hide views based on security roles. If you …

Role based view in Microsoft Dynamics CRM Read More »

{Dynamics CRM – SSRS} Execute custom SSRS report from Microsoft Dynamics CRM using custom code.

Recently we had the requirement in our project where the customer wanted to execute the Export To Excel feature for an editable grid that we implemented. The following in an overview of the requirement. 1. There is a custom jQuery Grid which shows a consolidated view to customer for a custom entity and its related …

{Dynamics CRM – SSRS} Execute custom SSRS report from Microsoft Dynamics CRM using custom code. Read More »

{Dynamics CRM} Get EntityTypeCode of an entity in CRM 2013 using JScript

Recently in my project i was required to get the entity type code of entity. A little bit of searching and I could find multiple ways to get them in jscript. However the main problems were: 1. they were working only on entity forms 2. you would have to make a metadata call to get …

{Dynamics CRM} Get EntityTypeCode of an entity in CRM 2013 using JScript Read More »

{Dynamics CRM Scripting} Exploring the Xrm.Internal namespace in CRM 2013

Recently i cam across this library in CRM 2013. And I found a lot of helpful methods which could facilitate you during your development. Please check for the screenshot below which shows some of  the methods. Notable are: 1. Xrm.Internal.getEntityName(<entitytypecode>) – you pass in the entitytypecode and get the logical name for the entity 2. …

{Dynamics CRM Scripting} Exploring the Xrm.Internal namespace in CRM 2013 Read More »

Dynamics Crm 2013 Access Teams – Demysitified

By now many of you might have already explored the concept of Access Teams that has been introduced with CRM 2013. If not then I would suggest to go through it. Personally i kind of liked it as it helped me to escape sufficient amount of coding in my current project. In this post, I …

Dynamics Crm 2013 Access Teams – Demysitified Read More »

"Must specify valid information for parsing in the string. at System.Enum.TryParseEnum" – Error while configuring Outlook with MSCRM

Recently while configuring outlook for our client, we got the above mentioned error. Also strangely it was working prior to one of our deployments that we did in the organization. So we became pretty sure that it has something to do specific with our latest customizations that we deployed to the environment. What we did is …

"Must specify valid information for parsing in the string. at System.Enum.TryParseEnum" – Error while configuring Outlook with MSCRM Read More »

{Dynamics CRM Business Process Flow}Register Business Process Flow StageID and ProcessID in Plugins in CRM 2013

Microsoft Dynamics CRM 2013 introduced the concepts of Business Process Flows. For any entity which have business process flows enabled, CRM creates two fields in the entity 1. stageid 2. processid On Change of process or stage for an entity, CRM allows you to register workflows. However through plugin registration tool, it is not possible …

{Dynamics CRM Business Process Flow}Register Business Process Flow StageID and ProcessID in Plugins in CRM 2013 Read More »

{Dynamics CRM Plugins} Images and Filtering attributes not supported for Plugins for custom Actions in CRM 2013

In CRM 2013, Microsoft has introduced the concept of actions which is a wonderful way to represent you custom business functionality in the form of a request that CRM platform would understand. Also on top of that, you can register plugins for the actions you create. However there are certain limitations when using plugins with …

{Dynamics CRM Plugins} Images and Filtering attributes not supported for Plugins for custom Actions in CRM 2013 Read More »

{Dynamics CRM Business Process} Change the Active Stage Flag in CRM 2013 Business Process Flows

Recently in our project, we had a customer requirement where the customer asked to change the colour of  image of active stage of a business process flow for Opportunity. Let’s see how this can be achieved. OOB in CRM 2013, the active stage flag for a business process in bluish is colour. Please check for …

{Dynamics CRM Business Process} Change the Active Stage Flag in CRM 2013 Business Process Flows Read More »

{Dynamics CRM Business Rules} Custom Xrm Script and Business Rules on the same Field in Dynamics CRM 2013

With the advent of Microsoft CRM 2013 in came business rules, a wonderful feature of the new CRM version. However with new implementations, there would be always some new confusions creeping up. Well in many training sessions on CRM 2013, i keep getting the question – “Will my onchange handlers and business rules work at …

{Dynamics CRM Business Rules} Custom Xrm Script and Business Rules on the same Field in Dynamics CRM 2013 Read More »

{Dynamics CRM Social Pane} Hide Posts From Social Pane in CRM 2013

In CRM 2013 Microsoft introduced the Social Pane, also known as Record Wall. Recently in our project we had a requirement to disable posts for a particular security role. To do that the first thing we did is to remove the Post Privileges for the security role. Please refer to the screenshot below. As you …

{Dynamics CRM Social Pane} Hide Posts From Social Pane in CRM 2013 Read More »

{Dynamics CRM Business Process Flow} Prevent user from moving to previous stage in CRM 2013 Business Process Flows.

In CRM 2013 Business Process flow, the user can move both forward and backward to next stage and previous stage respectively using the Next/ Previous arrows. However sometimes your requirement might be to have process flows unidirectional. In that case you would not want to show the previous arrow shown to the user. Let’s see …

{Dynamics CRM Business Process Flow} Prevent user from moving to previous stage in CRM 2013 Business Process Flows. Read More »

CRM 2013 Solution Import Error – An item with the same key has already been added

In CRM 2013, while importing of solution, we faced the error “An item with the same key has already been added”. A little bit of searching and we found this very good article which describes how to resolve the error – http://nishantrana.wordpress.com/2014/04/15/an-item-with-the-same-key-has-already-been-added-error-while-importing-solution-in-crm-2013/ However as the link suggests, it was not possible for us to delete the …

CRM 2013 Solution Import Error – An item with the same key has already been added Read More »

{Dynamics CRM} Found More than one RibbonDiff Entity Error- CRM 2013 Solution Import

In CRM 2013, while importing of solution, we faced the above in the Entity Ribbon of the Account Entity. To resolve the same, we unzipped the customization file that we were importing and then opened the customizations.xml file in a xml editor and checked for the RibbonDiff part for the account entity. We found duplicate …

{Dynamics CRM} Found More than one RibbonDiff Entity Error- CRM 2013 Solution Import Read More »