ExecuteMultipleRequest For Bulk Operation

You can use the ExecuteMultipleRequest message to support higher throughput bulk message passing scenarios in Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online 2015 Update, particularly in the case of Microsoft Dynamics CRM Online where Internet latency can be the largest limiting factor. ExecuteMultipleRequest accepts an input collection of message Requests, executes each of the message requests in the order they appear in the input collection, and optionally returns a collection of Responses containing each message’s response or the error that occurred. Each message request in the input collection is processed in a separate database transaction.ExecuteMultipleRequest is executed by using the IOrganizationService.Execute method.

  • For Online CRM, maximum Batch Size is 1000. So, for Online CRM, maximum 1000 requests can be executed at a time.
  • For On Premise, Batch Size can be increased.

 

 

 

Here is another example of changing the State and Status of records by ExecuteMultipleRequest.

 

More info : https://msdn.microsoft.com/en-us/library/jj863631.aspx

Read More

CRM Deploy Error : Assembly must be registered in isolation

When you trying to deploy plugins, if you get an Assembly must be registered in isolation error. You are not a Deployment administrator on CRM Organization. After the deployment administrator must add you as deployment administrator, you can deploy / register a plugin.

Open the Deployment Manager

First of all you must be a Dynamics CRM deployment admin to access the Dynamics CRM Deployment Manager and change the Dynamics CRM URLs. If you dont have access to privileges, you can tell your administrator.

crm acces denied

 

 

Open the User Panel from Deployment Adminstrators

Right click the deployment adminstrators then click the New Deployment Adminstrator.crm deployment

 

Add a New Deployment Administrator

You can add the user who you want from Active Directory.

deployment crm microsoft

Register and Deploy Plugins

https://msdn.microsoft.com/en-us/library/gg309620.aspx

Read More

CRM 2013 Tips : How to fix Access Denied Error ?

When you write javascript oData if you get an Access denied error. You have to change Web Addresses from Deployment Manager.

Open the Deployment Manager

First of all you must be a Dynamics CRM deployment admin to access the Dynamics CRM Deployment Manager and change the Dynamics CRM URLs. If you dont have access to privileges, you can tell your administrator.

crm acces denied

 

 

Open the Properties

crm access denied

 

Change Web Addresses

You have to change all 4 CRM URLs to the full FQN CRM URL (Full Qualify Domain Name).

crm access denied deployment

 

More info : http://www.dynamicscrmpros.com/microsoft-dynamics-crm-2011-access-denied-error-resolved/

 

Read More

Trigger a Workflow on CRM 2015 using C#

If you want to run/trigger a workflow, you can execute a workflow programmatically with following request :

Also this request is supported by Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online 2015 Update.

Source : https://msdn.microsoft.com/en-us/library/gg309600.aspx

Read More

How to get the type of attribute on CRM using Javascript ?

getAttributeType

Returns a string value that represents the type of attribute.

This method will return one of the following string values:

  • boolean
  • datetime
  • decimal
  • double
  • integer
  • lookup
  • memo
  • money
  • optionset
  • string

getFormat

Returns a string value that represents formatting options for the attribute.

This method will return one of the following string values or null:

  • date
  • datetime
  • duration
  • email
  • language
  • none
  • phone
  • text
  • textarea
  • tickersymbol
  • timezone
  • url

 

Application Field Type Format Option Attribute Type Format Value
Date and Time Date Only datetime date
Date and Time Date and Time datetime datetime
Whole Number Duration integer duration
Single Line of Text E-mail string email
Whole Number Language optionset language
Whole Number None integer none
Single Line of Text Text Area string textarea
Single Line of Text Text string text
Single Line of Text Ticker Symbol string tickersymbol
Single Line of Text Phone string phone
Whole Number Time Zone optionset timezone
Single Line of Text Url string url

Source : https://msdn.microsoft.com/en-us/library/gg334409.aspx#BKMK_getAttributeType

Read More

How to fix Assembly does not have a strong name for CRM ?

Referenced assembly XXX does not have a strong name.

These errors are taken in the following steps : 

  • Deployment with CRM Package
    CRM Assembly Build

 

  • Register the Plugin with Plugin Registration Tool

CRM Strong Name Signing

 

How to Sign an Assembly in Visual Studio ?

  • With the project node selected in Solution Explorer, from the Projectmenu, click Properties(or right-click the project node in Solution Explorer, and click Properties)

CRM Strong Name Signing

  • In the Project Designer, click the Signing tab
  • Select the Sign the assembly check box

CRM Strong Name Signing

  • Specify a new key file. In the Choose a strong name key file drop-down list, select New… Note that new key files are always created in the .pfx format.The Create Strong Name Dialog appears.
  • In the Create Strong Name Key dialog box, enter a name and password for the new key file, and then click OK

More info : https://msdn.microsoft.com/en-us/library/ms247123(v=vs.90).aspx

 

Why Strong Name is required for CRM Projects ?

https://social.microsoft.com/Forums/en-US/01de0856-e7a6-429b-b150-cca174eefb28/why-strong-name-key-is-required-for-plugin-in-ms-crm-40?forum=crmdevelopment

 

We recommend you that read in a very detail post on Hosk’s Dynamic CRM Blog

https://crmbusiness.wordpress.com/2014/10/01/assembly-generation-failed-referenced-assembly-does-not-have-a-strong-name/

 

Read More

Dynamics CRM 2013 Developer Toolkit for Visual Studio 2013

 

Normally there is no CRM Developer Toolkit installation file for Visual Studio 2013. But you can install it with some customization.

s2

  • Firstly Download the installation files.
  • Open Visual Studio folder and Run Microsoft.CrmDeveloperTools.vsix file
  • s3
  • Run the crmSDKFix.reg file
  • Copy contents of the CRM MSBuild folder to “C:\Program Files\MSBuild\Microsoft\CRM” or “C:\Program Files (x86)\MSBuild\Microsoft\CRM”
  • If there is no CRM folder in MSBuild folder, you can create this CRM folder.
  • Now open Visual Studio and you can create CRM Toolkit Project.

Read More

(Resolved) CRM Explorer not showing up on Visual Studio

s1
If you cannot find CRM Explorer in the Tools menu, you can fix the issue like that.

  • Close the Visual Studio Project
  • Open the Project’s Solution file (.sln) in a text edior
  • Find the Global section and insert the following code at the beginning of the section.

  • Save the file and open your project again.
  • Now you can find the CRM Explorer in the Tools Menu or Connect to Dynamics CRM Server dialog will show up automatically.

Read More

Top 7 CRM Blogs for CRM Developer to Follow

crmkitchen-topHere are the most efficient Dynamics CRM blogs about development you can find functional and technical posts in there. It is in no particular order, and it makes no claims to being entirely exhaustive. If you think we’ve missed an amazing blog, please let us know in the comments!

Check out the Top Dynamics CRM Developer’s Blogs :

Ben Hosking’s Dynamics CRM Blog

https://crmbusiness.wordpress.com/

 

CRM Tip Of The Day

http://crmtipoftheday.com/

 

On Technology with Mitch Milam

http://www.infinite-x.net/

 

Rajeev Pentyala’s Dynamics CRM Blog

https://rajeevpentyala.wordpress.com/

 

Barış Kanlıca’s Dynamics CRM Blog

http://www.cub-e.net/ (Also available Turkish Posts)

 

HIMMAP’s Dynamics CRM Blog

https://mahenderpal.wordpress.com

 

CRM Course’s Dynamics CRM Blog

http://crmdersleri.com/en/ (Also available Turkish Posts)

 

If you want to recommend a Dynamics CRM Blog, please leave a comment below.

Check out our other Top Dynamic lists here:

Read More

CRM 2011 Javascript Basics

Why we use Javascript in CRM ?

  • Data Manipulation on the forms
  • Automation and usability for users
  • Custom Validations on the forms about processes
  • Process Enhancement and Enforcement
  • To Create, Update and Retrieve record on the Client Side using OData

Get the value from field

Set the value of a field

Set the value of a disabled field (Read-Only)

Set the Requirement level

Get Form Type

Set the value of a lookup field

Hide / Show a field

Hide / Show a Tab

Save the form & Save and Close the from

Determine whick fields on the form are dirty

Get ID / Guid of the current record

Get ID / Guid of the current user

Get the Security Roles of the current user

Get the CRM Server URL

Refresh a SubGrid

Change the default entity in the lookup window 

Popup an existing CRM Record

Popup a new CRM form ( blank form)

Popup a new CRM form with default values

Popup / Trigger the lookup window associated to a lookup field

Popup an OK / Cancel Dialog ( Alert )

Refresh the Ribbon

Disable the all fields in the form

Expand / Collapse a Tab

Get all Required Fields in CRM form

Set / Change Label of field in CRM form

Reload / Refresh a form in CRM

Convert to Upper String Value

Change CRM Field CSS Style (font, color etc.)

Set as Read Only

Read More