Not able to register Image for Plugin in Microsoft Dynamics 365 Developer Toolkit (Public Beta 1)

Hi,

While using Developer Toolkit for Dynamics 365 we got strange issue today, the Images were not getting registered for Plugins.

In fact, in the Create New Plugin dialog box we couldn’t see the option of adding images like previous version.

Previous version –

To get more details on the new toolkit refer the below article

http://butenko.pro/2016/11/developer-toolkit-dynamics-365-public-beta-1-whats-new/

Hope it helps..

Advertisements

Using World Map \ Bing Map in SSRS Report in Dynamics 365 (and earlier)

Hi,

Recently I was working on a SSRS Report that will show the countries in the world map (Country was a custom entity in our CRM)

To create such a report, drag the Map report item to the report designer.

OOB we do not have world map in the Map Gallery.

Download it from the following location

https://mapgallery.codeplex.com/releases

Copy the download RDL to the following location (in my case – SQL Server Data Tools for VS 2012)

Select the world map

Add a Bing Map layer

Select Basic map

Click Next and select appropriate value

Click on Finish.

Next inside report designer, right click Layer Data

And specify mapping between the spatial and analytical dataset (our custom dataset here which has 2 column in it, name of the country and A2.

Suppose we have following countries in our CRM

The final report with countries highlighted in colors.

Hope it helps..

Bug in New Form Rendering CRM 2016 Update 1 – Add New button not working for Opportunity Product Sub Grid in Opportunity Form.

Today we got one more product bug in case of New Form Rendering

The Add New Button for OOB Inline Edit Sub grid works properly, however for a new custom sub grid it doesn’t work.

The same works properly in case of Legacy Form Rendering.

Clicking on + button opens the new form for Opportunity Product entity

Below are the other issues that we have faced recently in case of New Form Rendering

https://nishantrana.wordpress.com/2016/11/28/onchange-event-getting-fired-on-setvalue-in-crm-2016-update-1-new-form-rendering/

https://nishantrana.wordpress.com/2016/11/25/recommended-field-showing-up-as-required-field-issue-in-dynamics-365/

Hope it helps..

Cannot update a report from a template if the report was not created from a template error while trying to import solution in Dynamics 365

While trying to import a managed solution to our test environment we got the below error

“Cannot update a report from a template if the report was not created from a template”. We got this error on one specific report.

Removing that particular report from the solution and trying the import again fixed the issue for us.

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

Hope it helps..

SQL Timeout Issue while trying to Apply Solution Upgrade in Dynamics 365

Recently in our project we tried implementing solution upgrade to delete some of the components from the existing managed solution.

https://nishantrana.wordpress.com/2016/10/16/how-to-delete-components-from-managed-solution-in-dynamics-crm-2016-without-using-holding-solution/

However, we kept running into SQL time out issue and it didn’t work for us. Finally we raised product support ticket for it and eventually the product support team increased the SQLCommandTimeout to 5 minutes, which helped us to fix the issue.

Crm Exception: Message: Customer lookup [CustomerId] is invalid. Customer lookups can only be associated with 1 Account and 1 Contact error while importing solution in CRM

While trying to import solution to our test environment from our dev environment we got the below error

 “Crm Exception: Message: Customer lookup [CustomerId] is invalid. Customer lookups can only be associated with 1 Account and 1 Contact”

The way we got it fixed

  • Unzip the solution and open customizations.xml file
  • Remove all attributes with name “CustomerId” (Lead, Invoice, Opportunity entity)

g1

  • Find all entity relationships with ReferencingAttributeName equals CustomerId and add to EntityRelationship new attribute: unmodified=”1″

g2

  • Zip solution back and import it.

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

Hope it helps..

Legacy Form Rendering vs New Form Rendering (Turbo Forms) in Dynamics 365

Hi,

Recently we were analyzing performance improvement we’d gain while moving our solution from legacy form rendering to new form rendering.

For this we picked up the opportunity entity, which had good enough customizations (field, tab, sub grid, JavaScript etc.) in it.

Below is result we got using CRM Performance Center

http://blog.cobalt.net/blog/understanding-the-microsoft-dynamics-crm-performance-center

Hope it helps..

Get the list of all the dirty fields in the form in Dynamics 365

Hi,

Recently on opening our opportunity entity records we were getting unsaved changes message.

To quickly get the list of all the fields

Open the debugger tool and put the following script in the console window

frames[0].Xrm.Page.data.entity.getDataXml();

Check this thread

http://stackoverflow.com/questions/32735019/dirty-form-with-no-dirty-fields-on-crm-2015-online

Hope it helps..

OnChange event getting fired on SetValue in CRM 2016 Update 1 New Form Rendering

Today while doing the analysis of existing system in New Form Rendering, we realized that the SetValue function used on onChange of an attribute was in turn triggering the onChange event for that field.

We basically had an option set field whose value we were setting based on certain condition on onChange event of the same field. This was working fine in Legacy Form Rendering and also in vanilla instance of Dynamics 365.

Only in new form rendering we were getting this issue of infinite loop.

I see the similar issue discussed in the forum

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

We are planning to raise a product support ticket for the same. Let us see what solution the product team will come up with.

Hope it helps..

SSRS Fetch XML based CRM Online Report performance in Dynamics 365

Hi,

Recently we were analyzing the performance of a fetch xml based online report.

The report was running against opportunity, and had 4 data set in it. Custom entity A and custom entity B were n – 1 related to opportunity.

Data Set Opportunity 13000 records
Data Set for Custom Entity A used for Lookup 100 records
Data Set for Custom Entity B used for Lookup 8000
Data Set for Tasks Activity used for Lookup 130000 records

More on Lookup Function in SSRS

Running without filter 107 seconds
Filter Last 6 months 94 seconds

We then updated the report’s design, to include only one Dataset by using link entities in the main dataset’s fetch xml. We got the below result

Running without filter 280 seconds
Filter Last 6 months 10 seconds

Another variation we tried was having two Dataset, one for opportunity and another one for tasks to be used for lookup.

Running without filter 50 seconds
Filter Last 6 months 50 seconds

The last variation we tried was using only one Dataset for Opportunity in the main report and the drill down report for Tasks

Running without filter 34 seconds
Filter Last 6 months 7 seconds

It clearly shows that the most efficient way of implementing is through the usage of drill down report, only glitch here is user needs to click on the main report to get the details.

Using single dataset is efficient for subset of records, however it can take long time if it runs on huge number of records in which case lookup performs better.

Basically,

g

Hope it helps..