Cannot read property ‘raw’ of undefined error message in CRM 2015 (Update 1.2)


Hi,

After our CRM 2015 Online instance was updated with Update 1.2 https://support.microsoft.com/en-us/kb/3141809 , we started getting weird issues around Boolean fields.

In our existing records having Boolean fields which has no value in it, we started getting the following Jscript error.

<Message>inline control initialization failed for control : tk_sharingrefreshed : with controlMode : normal : and exception details :

Cannot read property ‘raw’ of undefined</Message>


The only way we got it fixed is by changing the format of the field from Two Radio Buttons to either List or Check Box in the form.

Hope it helps ..

Sample code to close a quote as won using WinQuoteRequest in CRM 2016 (and earlier)


Just sharing a sample code to close quote as won through C#


WinQuoteRequest winQuoteRequest = new WinQuoteRequest();
Entity quoteClose = new Entity("quoteclose");
quoteClose.Attributes["quoteid"] = new EntityReference("quote", new Guid("015816C2-2F10-E611-8112-3863BB353ED0"));
quoteClose.Attributes["subject"] = "Quote Close" + DateTime.Now.ToString();
winQuoteRequest.QuoteClose = quoteClose;
winQuoteRequest.Status = new OptionSetValue(-1);
organizationProxy.Execute(winQuoteRequest);

Hope it helps..

Using Rollup fields with Account Hierarchy in CRM 2015.


We recently had a requirement wherein we had one custom entity Financial Detail associated to Account as many to one relationship.

i.e. One account record can have multiple Financial Details records associated.

We had this field Total (currency) in Financial Detail entity of type currency.

The requirement was to have sum of Total of all related Financial Details records of the Account record plus of any Sub Accounts (child accounts up to n level).

It would have been painful if we had to implement the same using Plugin.

This we can achieve easily using Rollup Field in Account

Below is the definition of the Roll up field named Total Rollup

  • Set Hierarchy as Yes.
  • Select Financial Details as the related entity.
  • Filter based only Active records.
  • In Aggregation specify Sum of Total (currency field in Financial Details record).

 

Hope it helps.

Xrm.Page.getControl(arg).getLabel() showing both Label and Description after CRM 2015 Online Update 1.2.


Last week we had Update 1.2 installed in our CRM 2015 Online instances. After that we have started getting following issue.
In alert we were showing Label of the field using Xrm.Page.getControl(arg).getLabel(), and after update it is now showing Lablel as well as description of that field.

alert(Xrm.Page.getControl("parentaccountid").getLabel());



Waiting for the fix, till now removing the description seems like the only solution (temporary one)
Hope it helps


“Uncaught TypeError: Cannot read property ‘firstChild’ of null” error in Business Process Flow in CRM 2015 after CRM 2015 Update 1.2.


Hi,

After CRM 2015 Update 1.2 were installed, we started getting the below error in one of our Opportunity Forms on click of Next Stage in BPF.

 

g WP_20150405_002

We were using Legacy Form Rendering, and we observed this issue was not occurring in case of New Form Rendering.

After trying out several options, what worked was removing one of the sub grids used in the hidden tab.

Hope it helps..

Set PartyList field To in Email in CRM 2015 (and earlier)


Sample code to set the PartyList field for Email Activity.


function setContact() {

var partlistData = new Array();
partlistData[0] = new Object();

// guid of the record
partlistData[0].id = "8B2AD82B-30D6-E511-811F-3863BB356F90";

// name of the record
partlistData[0].name = "Hugh Grant";

// entity schema name
partlistData[0].entityType = "contact";
Xrm.Page.getAttribute("to").setValue(partlistData)

}

Hope it helps..