Category Archives: Development

Tip: Using SendEmailFromTemplateRequest to directly send an email using the Email Template

Earlier when we had an Email Template created for any entity, we used to follow the below four steps to send an email using Template: Retrieve the Email Template and get the Template Id Instantiate the template using InstantiateTemplate request and get the Response Create the Email in CRM using IOrganizationService object or OrganizationServiceContext object… Read More »

Inogic can help you with Dynamics CRM Development, Implementation, Migration & More

It has been 11 years since we first started Inogic back in 2006. Back then, Microsoft just upgraded the Microsoft CRM 1.0 and rebranded it to Microsoft Dynamics CRM 3.0. Since then, the application has evolved significantly, and we have been evolving with it and have adopted new technologies along the way to keep up… Read More »

Modify OOB ribbon button for Specific Activity Type Entity

Introduction: We recently had a business requirement where we wanted to hide the ‘Mark Complete’ OOB button from the home page of Activity entity. However, we wanted to hide this button for Service Activity entity and not for other activity types like Task, Appointment, Email, etc. ‘Mark Complete’ is a button on the Home Page… Read More »

Found an integer attribute with unrecognized format: new_customeridtype – Solved

Introduction: Microsoft introduced the customer type field in Dynamics CRM 2016. To know more about it, you can refer this blog to explore it more. In this blog, we will focus on one of the error, which is caused while retrieving entity metadata for customer field. Problem: In one of our examples, our requirement was… Read More »

Programmatically Publish Customizations in Dynamics CRM

Introduction: In Dynamics CRM, to make the entity customization changes visible it is important to “Publish” the customization. The customization could be changes to the entity metadata or form design or adding buttons to the ribbon bar. You can also import solutions that update the customizations and publish them. Scenario: In one of the processes… Read More »

Retrieve Absolute and Site Collection URL Request in Dynamics CRM

In Microsoft Dynamics CRM, many emails and notes along with attachment gets created on daily basis, which results into increase in the CRM database storage which is expensive. So usually, people go with the integration of Dynamics CRM with SharePoint which reduces the CRM database storage. We receive many such requests where client wants to… Read More »

Execute the Global Action Using Web API in Dynamics CRM

Introduction: We have already discussed how to perform entity specific custom action using Web API in one of our earlier blog. But when we want an action to be performed on multiple entities, we need to create a global action. Create global action:- Go to Settings → Processes → Click New then select category as “Action” and entity… Read More »

Scenario where Impersonation in custom workflow can be used for Dynamics CRM

Requirement:  Recently we had a request where client wanted to have an automated process of assigning the case to a team member. To explain further, whenever any case is created in Dynamics CRM and when it is assigned to a team, that case should automatically get assigned to the first team member of that team. Once the… Read More »

Execute Web API request using Angular JS in Dynamics CRM

Introduction In our earlier blogs of  Web API introduced in Dynamics CRM 2016, we have explained different requests and functions of Web API to querying and performing operations in Dynamics CRM. This blog will show you how to execute Web API request using Angular JS. This article would be helpful for those who have knowledge of… Read More »

Steps to Enable Script Debugging for Dynamics CRM Outlook Client in Visual Studio

We can debug the Script used in Outlook using Visual Studio. For this, we just need to change some settings in the “Advance setting” section of Internet Explorer. In this blog, we will show how to enable Script Debugging using the Visual studio. For this, we have developed the sample code. So, here we have added… Read More »

Programmatically Activate and Deactivate SLA Records in Dynamics CRM

Introduction: Service Level Agreements (SLAs) in Microsoft Dynamics CRM help you define the level of support or service that the company agrees to offer to its client. The details items that are included to define key performance indicators (KPIs) or metrics to achieve the service level that is expected to be. With the release of… Read More »

Validate Record state using IsValidStateTransitionRequest in Dynamics CRM

Introduction: Suppose we are going to change the state of an opportunity record programmatically by using WinOpportunityRequest request, before we make change to the state of the record it is quite important to check, the transition which we are going to execute is valid or not. For example suppose we are going to change the… Read More »

Optimistic Concurrency Control from Dynamics CRM 2015 Update 1

What is the need of Concurrency Control? Systems such as Dynamics CRM are used by multiple users. When two or more CRM users need to update a same record at the same instance, then the changes made by the last user will be saved. There is no such concurrency control mechanism to stop users from… Read More »

Set Values of all Data Types using Web API in Dynamics CRM Through C#

Introduction: With the release of Microsoft Dynamics CRM 2016, Web API which was introduced offers a development experience across many devices, languages and platforms. In this blog we will take a look at how to set the all the datatypes in the CRM using C# through a windows application and using Web API. You may… Read More »

Retrieve Resources from Resource Group and Service entity programmatically

Introduction: In order to deliver a service, resources which represent tools, rooms, people or pieces of equipment are used. These resources are collected into resource groups which have similar attributes. In MS Dynamics CRM, the resources are categorized as Facilities / Equipment or Users. Recently, we had to retrieve Resources from the Resource Group and… Read More »

IsPartyDeleted in ActivityParty in Microsoft Dynamics CRM

Introduction: Even after working in Dynamics CRM for all these years, it doesn’t fail to throw up surprises. This time it is a property “IsPartyDeleted” in Activity Party. What is ActivityParty? For the ones that are just starting out with Microsoft Dynamics CRM, Activity Party is a special entity that is used only to store… Read More »

Execute fetchxml using Web API in Dynamics CRM 2016

Introduction Microsoft Dynamics CRM Online 2016 Update and Microsoft Dynamics CRM 2016 (on-premises) introduced new concept called The Web API. It can be used across a wide variety of programming languages, platforms, and devices. The Web API implements the OData (Open Data Protocol), version 4.0, an OASIS standard for building and consuming Restful APIs. Basically… Read More »

Use RetrieveDuplicateRequest in Dynamics CRM

Introduction: Recently we had a requirement where we had to create Contact records from data received from other System and if Duplicate record found then avoid creation of records based on Duplicate Detection rules specified in the System and get the List of the Duplicate Records found in the system. The Duplicate Detection rules might… Read More »

ExecuteMultiple & Workflow or Plugin Assemblies

Introduction: ExecuteMultipleRequest – Message that allows you to club multiple CRM operations and execute them at one go without having to send each of these as separate requests. The ExecuteMultiple provides you with the option to indicate whether you want to continue processing the remaining requests if one of them fails or to stop processing. But… Read More »