Curious Case of Remove button for QueueItem SubGrid in CRM 2011


Hi,

The QueueItem subgrid will normally have a Remove button associated to it in the ribbon.

However when used in a view in Dashboard it goes missing.

One option to get it back is create a new custom ribbon button with the exact definition of the existing OOB Remove button.

http://www.mscrm-developer.com/2012/11/remove-button-missing-for-queue-items/

Hope it helps

MSCRMAuthentication cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


Hi,

We had created a WCF Service as wrapper over our OrganizationService.svc. It was all working fine until we installed UR 13. After installing UR 13, we started getting the below error for our WCF Service in the eventlog.

MSCRMAuthentication cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

We had to replace the following assemblies from the CRM Server’s bin (latest one after installing UR 13) directory to WCF Service bin directory.

Hope it helps.


Calling WCF Rest Service from a Plugin in CRM 2011 (Online)


Let us take a simple rest service example here

http://www.rockycherry.net/services/Photos/photos.svc/photos

It returns the string “You have asked for photos”.

Within the plugin class add references to following assemblies.

The sample code of the plugin


namespace TestPlugin
{
 public class Class1 : IPlugin
 {
 public void Execute(IServiceProvider serviceProvider)
 {
 IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

 if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
 {

// using WebClient
 WebClient webClient1 = new WebClient();
 string data1 = webClient1.DownloadString("http://www.rockycherry.net/services/Photos/photos.svc/photos");

// using WebChannelFactory
 WebChannelFactory<IPhotos> factory = new WebChannelFactory<IPhotos>(new Uri("http://www.rockycherry.net/services/Photos/photos.svc"));
 IPhotos proxy = factory.CreateChannel();
 string photos = proxy.GetPhotos();

 }

 }
 }

[ServiceContract]
 public interface IPhotos
 {
 [WebGet(UriTemplate = "Photos")]
 [OperationContract]
 string GetPhotos();
 }
}


Register the plugin in Sandbox mode for CRM 2011 online.

Check this wonderful post for all the details

http://rockycherry.net/blog/?p=179

Hope it helps.

Enable Sub Grid for Contract Line (ContractDetail) entity in CRM 2011


Hi,

OOB if we try to add\insert sub grid for Contract Line entity in an Entity’s Form we would realize that the Contract Line entity doesn’t show up in the Entity drop down there.

The UNSUPPORTED way to get it enabled is to

Open the OrgName_MSCRM database

Run the following query

update metadataschema.entity

set  IsChildEntity=0

where name=‘contractdetail’

This will let us add the sub grid for the contract line entity.

Bye.

“You must provide a value for Potential Customer” error while creating opportunity record through Create Step in Process in CRM 2011 Online


Hi,

Got the below error message while defining the Create Step in Workflow in CRM 2011 online instance. It seems like it is a bug in new online environment that have UR 13 applied.

Check out this thread

http://social.microsoft.com/Forums/en-US/crm/thread/51a63a3e-bd81-471e-a9d8-617bfe033271/

The workaround would be to remove the requirement level, edit and publish the workflow and the set the requirement level back.

Bye.

List of Error Codes in CRM 2011


Hi,

Was wondering where we can get the list of error codes in CRM 2011.

For CRM 4.0 we used to have the following link (page in SDK)

http://msdn.microsoft.com/en-in/library/cc151248.aspx

In CRM 2011, we can get it in SDK at the following path

\sdk\samplecode\cs\helpercode

Do check this post as well

http://mscrmuk.blogspot.com/2009/01/crm-error-codes.html

Bye.

Advertisements