The operation could not be completed because you do not have read access on some of the fields in {0} record error in CRM 2013\2015


Hi,

While trying to add a new quote record to an opportunity record, we were getting the below error

The issue turned out that the user was not having read access to one of the fields in the opportunity record configured through Field Level Security.

Hope it helps..

Using Action to trigger Plugin in CRM 2013\2015


Hi,

We recently had a requirement to call Plugin on execute of an Action.

To implement this,

We created a blank Action named Trigger Plugin for custom entity named Security Entity.

Open Plugin Registration Tool and connect to the Org and we will have our action available there as message for our Plugin Step

We can execute our Action from C# and Jscript which in turns will call our Plugin.

C# Code:

Jscript Code:

</p>
<p>var xml = "" +<br />
"&lt;s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;&lt;s:Body&gt;&lt;Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"&gt;&lt;request xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"&gt;&lt;a:Parameters xmlns:b=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\"&gt;&lt;a:KeyValuePairOfstringanyType&gt;&lt;b:key&gt;Target&lt;/b:key&gt;&lt;b:value i:type=\"a:EntityReference\"&gt;&lt;a:Id&gt;1c54dadd-f91b-e511-a5ca-c4346bacae20&lt;/a:Id&gt;&lt;a:LogicalName&gt;tk_securityentity&lt;/a:LogicalName&gt;&lt;a:Name i:nil=\"true\"/&gt;&lt;/b:value&gt;&lt;/a:KeyValuePairOfstringanyType&gt;&lt;/a:Parameters&gt;&lt;a:RequestId i:nil=\"true\"/&gt;&lt;a:RequestName&gt;new_TriggerPlugin&lt;/a:RequestName&gt;&lt;/request&gt;&lt;/Execute&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;" +<br />
"";</p>
<p>var xmlHttpRequest = new XMLHttpRequest();</p>
<p>xmlHttpRequest.open("POST", Xrm.Page.context.getClientUrl() +"/XRMServices/2011/Organization.svc/web", false);<br />
xmlHttpRequest.setRequestHeader("SOAPAction","http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");<br />
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");<br />
xmlHttpRequest.setRequestHeader("Accept", "application/xml, text/xml, */*");<br />
xmlHttpRequest.setRequestHeader("Content-Length", xml.length);<br />
xmlHttpRequest.send(xml);</p>
<p>var resultXml = xmlHttpRequest.responseText;<br />
alert(resultXml);</p>
<p>

Use the SoapLogger tool to get the Soap request

https://nishantrana.me/2014/08/27/updated-soaplogger-for-crm-2013-to-generate-javascript/

Hope it helps..

 

Advertisements

Fixed: Action not appearing in available Message in Plugin Registration tool CRM 2013\ CRM 2015


Hi,

We created a new Action and wanted to trigger a plugin on call of the Action.

However that Action was not appearing in available messages while registering step for Plugin.

Finally got to know that in case of Online need to restart the plugin registration tool for that action to appear in message.

 

Simple Refresh or Reloading of the organization will not work.

Hope it helps..

Calculate Date Difference in CRM 2015.


Calculated fields in CRM 2015 (after Update 1) includes functions to calculate difference between date time fields.

Now we can define the Duration (custom calculated) field in the following manner

Hope it helps..

Step by Step – Configure CRM Plugin and Azure Service Bus in CRM 2015.


Run Microsoft Azure PowerShell

  • Add-AzureAccount


Sign in using your Azure Account.

  • Get-AzureSubscription

  • Select-Azuresubscription <name of the subscription you need>
  • New-Azuresbnamespace <name for the service bus> “North Europe” -CreateACSNamespace $true -NamespaceType Messaging


Open Azure Management Portal

https://manage.windowsazure.com/

Click on the Service Bus à Queues and Create a Queue using Quick Create

 

 

Now open Plugin Registration Tool.

Solution Namespace – Name Space we gave to our Service Bus.

Path – Name of the Queue.

Cick Save & Configure ACS

Management Key è Default Key

 

 

Click Save.

Now register a new Step. (Post Lead Create Asynchronous)

 

Create a new Lead record in CRM.

Check the System Job.

Hope it helps..

“Profiler AppDomain Unloaded” error while using Plugin Registration Tool for debugging CRM 2013 Online Plugin. (Plugin Profiler)


On clicking Start Execution button in Plugin Registration Tool for profiling I was getting the AppDomain Unloaded error.

On opening up the error detail the message was

“Could not load file or assembly Microsoft.Xrm.Sdk, Version=5.0.0.0″

Updating the Plugin Project to use the Version 6 assembly that was part of the SDK, from which I was using Plugin Registration tool fixed the issue.

To understand more check the below links

https://crmbusiness.wordpress.com/2015/03/24/crm-2015-understanding-the-plugin-profiler-and-puzzling-error/

https://social.microsoft.com/Forums/en-US/9709c5b3-a035-4c1a-bdd3-6d8054db31d0/profiler-plugin-type-does-not-exist-in-assembly-error?forum=crmdevelopment

http://blogs.msdn.com/b/devkeydet/archive/2015/02/17/debug-crm-online-plugins.aspx

Hope it helps..