New Design

Recent Post

Monday, December 2, 2013
no image

MSCRM - Error : ActivityFeeds.Plugins: ActivityFeeds.Plugins.ActivityClose

After adding a plugin and published, every time I try to add a new Account and get a failure. The error message like :
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.</Message>
  <Timestamp>2013-12-02T03:27:12.0322954Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[ActivityFeeds.Plugins: ActivityFeeds.Plugins.ActivityClose]
[666ee08c-a126-e311-8e0c-0050569aa3d9: ActivityFeeds.Plugins.ActivityClose: Create of  any Entity]


</TraceText>
</OrganizationServiceFault>

There is an solution from Here on the problem, and the detail is:

The error code -2147220891 can be converted to the hexadecimal version using Windows Calculator. To do this open calculator and change the mode to Programmer. Then paste the number -2147220891. Then press the negative button to make the number negative. Finally change the value to hexadecimal by changing the mode from DEC to HEX. You will get FFFFFFFF80040265 which is 0x80040265. You can then search using a search engine and find that the error means: Error Message: Object reference not set to an instance of an object. This error is very generic and does not help much at this point.
It could be that the Activity Feeds solution is not configured correctly. I believe the best way to continue troubleshooting this problem would be to open a support request with Dynamics CRM Support. Once that is open the support engineer will be able to collect tracing from the CRM Online server deployment. Tracing is needed to get a better idea of what failed when the Activity Feeds solution executed. The tracing will need to be collected when you reproduce the error so be prepared to reproduce the issue when the engineer is ready to collect the traces.
Alternatively you could try to disable the Activity Feeds solution for the account entity. This blog covers enabling an entity for Activity Feeds, but I would assume that it has some step to disable as well.
"...To disable Activity Feeds for an Entity, you will need to click to choose an Entity from Post Configuration grid and click Delete. Publish the change to take it effect."
Finally,  after disabled the the ActivityFeeds.Plugins from solution, CRM came back working.
Tuesday, October 22, 2013
Thursday, October 17, 2013
no image

MSCRM - Microsoft Dynamics CRM 2011: Field Formats

The field data types and formats are rather limited in MS CRM. As a programmer, I'm accustomed to having my cake and eating it too. One of the unfortunately frustrating aspects of using a solution framework is needing to work outside the borders. Things the framework handles natively, are inherently easy to do and a great time saver. Once you move out of that box, it can get dodgy. 

MSCRM - Microsoft Dynamics CRM 2013 iPad App

MSCRM - Microsoft Dynamics CRM 2013 iPad App

The official Microsoft Dynamics CRM IPad application was released onto the Apple store on October 7th 2013. Many of our clients have been asking for a suitable MS CRM IPad application for years and although there have been several vendor offerings and mobile client workarounds, this official application should satisfy the typical mobile worker’s needs.

no image

MSCRM - What’s new in Microsoft Dynamics CRM 2013: New Features & Comparison of MS Dynamics CRM 2011 vs 2013

This post, What’s new in Microsoft Dynamics CRM 2013, lists the main new features in Dynamics CRM 2013 and compares them to Microsoft Dynamics CRM 2011 where applicable (Crm 2013 Vs. CRM 2011). At the bottom of the comparison table, you will find links for the most important Dynamics CRM 2013 resources which are the customer center, developer center and Tech IT Pro Center. You will also find some informational files about Dynamics CRM 2013 and which are published by Microsoft.

Wednesday, September 11, 2013
no image

MSCRM - Disable Duplicate Detection Save button on Popup

Quick Overview:
CRM 2011 allows you to create duplicate detection rules that will attempt to find duplicates on criteria you select. However, the user has the ability to save the record regardless. My first inclination was to create a couple of reference entities and utilize the Create and Update message of the plug-ins. After talking with some other CRM guys, I've learned that handling writing of any entity is just too costly.
This technique I will describe below will change the behavior of the duplicate detection view duplicates page. If you don't want to do this proceed no further.

Instructions:
1. Navigate to your CRM instance on your app server.
2. Navigate to \CRMWeb\Tools\DuplicateDetection\ViewDuplicates\
3. Edit this file in Visual Studio or Notepad.
4. Add this line to the ShowPage() javascript member or any member that is called by onLoad():
document.getElementById("btn_id_Ok").disabled="true";
5. Save your change.

This simply disables the button as you can tell. The fun part would be to allow not allow by the current user's role. I suggest using WhoAmI() or any AJAX call to accomplish what you want.

From : http://dynamics2011.blogspot.co.uk/2012/04/crm-2011-disable-duplicate-detection.html
Thursday, August 29, 2013
no image

MSCRM - Creating a Check-Box


1. Create a new field, select the type as 'Two Options', by default you will get the values of 'Yes and No', customize them if you want. save and close the field.
2. Drag the field to the form and place it on one of the placeholders, at your own desired location.
3. Double click on the field, and the field properties window should open.
4. In field properties go to the formatting tab.
5. There you will see a 'control formatting' drop down, (by default its value will be 'Two Radio Buttons' )
from that drop down, select the 'check box'.
6. Save and Publish, you should now have a checkbox on your form.
Friday, August 16, 2013
no image

MSCRM - Modify the Parent & Child relationship

Parent & Child relationship of Entities should be well defined at the beginning. If you want to change the entity relationship after data imported to the system, you will find that the relationship of existing records do not automatically re-build as using the new definition.

To resolve this issue, you can using the re-parent setting to re-assign the owner of each records. But if the volume of data is huge, you want to die......

So, another approach is updating the database directly. (But it is an unsupported solution from Microsoft, you need to take your risk!!!)

Example,
You want to remove the Account & Contact Parent & Child Inherited relationship, you need to update the table: (assumed you have already changed the Account & Contact relationship setting to "Cascade none")

update PrincipalObjectAccess
set InheritedAccessRightsMask = 0
where ObjectId in (select contactid from ContactBase)



Thursday, August 15, 2013
no image

MSCRM - Entity Relationship Q&A

Question: Cannot edit Merge and Delete behavior in 1:N entity relationship

In 1:N relationship of Account entity, the delete and merge behaviors appear as 'Cascade All'. Both option sets are read-only and I cannot modify it.

Please advise why is that and how can I modify these behaviors.

Answer:
The Merge behavior never can be edited, it is a CRM restriction. This value is always "Cascade All" in the 1..N relationships from Account, Contact and Lead, that are the only entities that allow merging. In other entities the value is always "Cascade None".

The Delete behavior can be edited. but not in every cases. In the case of Account this behavior can be edited only in 1..N custom relationships.

From : Dynamics
no image

MSCRM – Entity Relationships Explained

Definition

Entity Relationships is to define the data relationships between two entities in the system metadata.

Dynamics CRM design gives the flexibility to manage the data relationships thru the metadata without touching the underlying SQL database keys.

These settings can be managed within the entity form in the design mode.

Dynamics CRM supports basically supports 2 relationships between any two entities -
1: N and N:N

no image

MSCRM - Cascade Option on Relationships in Microsoft CRM

In MS CRM, an important relationship between the entities. The following I summarized and quoted from diff. sources to explain the relationships.

Applied to CRM 2011

Breaking News
Loading...
Quick Message
Press Esc to close
Copyright © 2013 Technology KB All Right Reserved