Only Secure Content is displayed notification while using Bing Map API version 7.0 in CRM Online.


Hi,

We recently developed a web resource using Bing Map API to show address as push pin for Custom Entities.

However, we were getting the following notification

The reason being we were using Http version of the API and CRM is on HTTPS. We changed it to use HTTPS version and it fixed the issue.

Else we would have to do the following settings in the browsers

http://du.screenstepslive.com/s/docs/m/7107/l/219447-allow-mixed-content-in-browsers

Helpful post

http://blog.devdave.com/2011/01/removing-mixed-content-warning-when.html

Hope it helps..

How to – Get Total Count of records in CRM. (more than 5000)


For version 9.0 please check the below post

RetrieveTotalRecordCountRequest

https://dreamingincrm.com/2019/07/22/getting-entity-record-counts/

https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.retrievetotalrecordcountrequest?view=dynamics-general-ce-9

Just sharing a sample code to get the total number of records (e.g. account here)

<br />
 IOrganizationService orgService = GetOrganizationService();</p>
<p> int totalCount = 0;</p>
<p> QueryExpression query = new QueryExpression("account");<br />
 query.ColumnSet = new ColumnSet();<br />
 query.Distinct = true;<br />
 query.ColumnSet.AddColumn("accountid");<br />
 query.PageInfo = new PagingInfo();<br />
 query.PageInfo.Count = 5000;<br />
 query.PageInfo.PageNumber = 1;<br />
 query.PageInfo.ReturnTotalRecordCount = true;</p>
<p> EntityCollection entityCollection = orgService.RetrieveMultiple(query);<br />
 totalCount = entityCollection.Entities.Count;</p>
<p> while (entityCollection.MoreRecords)<br />
 {<br />
 query.PageInfo.PageNumber += 1;<br />
 query.PageInfo.PagingCookie = entityCollection.PagingCookie;<br />
 entityCollection = orgService.RetrieveMultiple(query);<br />
 totalCount = totalCount + entityCollection.Entities.Count;<br />
 } </p>
<p> MessageBox.Show(totalCount.ToString());<br />

 

Hope it helps

Advertisements

Fixed – Microsoft Dynamics CRM Reporting Authoring Extension Setup – Setup cannot continue because there is a pending restart required error in CRM 2015


Hi,

Got the below error while trying to install the Report Authoring Extension for CRM 2015.

To fix the issue, open the log file, check for the registry path and delete it

Hope it helps !

“Duplicate Column Heading Exists” Error while using Templates for Data Import in CRM 2015


Hi,

We were getting the Duplicate Column Heading Existing while trying to download template for data import for Opportunity Entity.

Through Customizations we changed the Display Name of the fields that were duplicate and it fixed the issue for us.

Solution:

https://community.dynamics.com/crm/f/117/t/169282

I had the same issue.  In Settings> Customizations, display the Entities that causes the error.  Sort the fields by display name and scroll through the list until you find two identical display names.  Rename one, save and publish your changes.  You should now be able to download the Import template.

Do check out this awesome article

http://missdynamicscrm.blogspot.in/2014/09/understanding-import-template-crm-2011-2013-fields.html

Hope it helps ..


No plugins have been selected from the list. Please select at least one and try again error while trying to register Custom Workflow Activity in CRM 2013 Online.


Hi,

Update – Check if the class used for defining Plugin / Workflow Activitiy is PUBLIC

Was getting below error while trying to register Custom Workflow Activity in CRM 2013 Online.

The solution we found out was to use CRM 2015’s Plugin Registration Tool to register it.

Hope it helps.

Advertisements

A managed solution cannot overwrite the ReportVisibility component with Id which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged ReportVisibility component on the target system, and now a managed solution from the same publisher is trying to install that same ReportVisibility component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.


Hi,

We were getting the error while importing a managed solution exported from dev environment to the test environment in CRM 2013 online.

It might be the case that the particular report was modified by the user in the test environment. As we weren’t updating that report we removed that report from the new exported managed solution from our dev environment and the import was successful.

https://sliong.wordpress.com/2012/09/20/crm-2011-importing-managed-solution-error-a-managed-solution-cannot-overwrite-the-attribute-component/

Hope it helps.