Search Enhancements in CRM 2015


Multi Entity Search

CRM 2015 have added option for multi entity

With Maximum 10 entities at a time (can also be used for filtering the result)

Clicking on “+” in the result opens the quick create form for that record

To set up Quick Find search, Go to à Adminsitration à System Settings

Click on Select to select the entity and specify the order for them.

Maximum of 10 entities can be added for search. (Supports custom entities)

The Search is based on Quick Find View of the respective entity. i.e. based on Find Columns defined in it.

The result displays first 4 column of the Quick Find View.

Notes on Rollup Fields in CRM 2015


Data Types and Function Supported

  • Whole Number à SUM, MIN, MAX, COUNT
  • Decimal NumberàSUM, MIN, MAX, COUNT
  • CurrencyàSUM, MIN, MAX
  • Date and TimeàMIN,MAX

Creating a Rollup Field

Check how many task activity are open for a particular contact record.

Click on Edit

Select Task as related entity.

Set Filters to Open Task

Specify Count as Aggregation.

Add the field to Contact form.

Click on Recalculate will show the count.

On Adding a Task and recalculating

Two new field State and Last Updated On are also created along with the roll up field. Adding them on form.

Different State value

0 Not Calculated
1 Calculated
2 Overflow Error
3 Other Error
4 Retry Limit Exceeded
5 Hierarchical Recursion Limit Reached
6 Loop Detected

 

  • Aggregated by System Account.
  • Read Only Field.
  • Asynchronous job runs approximately every 12 hours else it can be run manually using Recalculate button.

     

Notes on Calculated Fields in CRM 2015


Data Type supported

  • Single Line of Text
  • Option Set
  • Two Options
  • Whole Number
  • Decimal Number
  • Currency
  • Date and Time

Operator and Function Supported

Math Operator
à =, +, -, /, *

String Functions
àCONCAT, TRIMLEFT, TRIMRIGHT

Date Time
à ADDHOURS, ADDDAYS, ADDWEEKS, ADDMONTHS, ADDYEARS, SUBTRACTHOURS, SUBTRACTDAYS, SUBTRACTWEEKS, SUBTRACTMONTHS, SUBTRACTYEAS

Creating a new Calculated Field

For e.g. let us create a calculated field of string type that will concat first name, middle name and last name for Contact Entity.

Open Contact entity for customization à Fields à Click on New

Click on Edit to define the Calculated Field

The editor has IntelliSense

 

Add the field to form.

  • Calculated Field are not saved in database.
  • They are executed during Retrieve.
  • Can be used by another calculated field.
  • Calculations is done using System Account.

JavaScript runtime error: Unable to get property ‘get_code’ of undefined or null reference in CRM


We can get the ‘get_code’ error if we are using Assign Step in Action/Workflow and the value is null for the field selected.

Here we need to use If condition to check if the value exist for that particular field before using Assign Step.

Sample code: Using jqGrid in ASP.NET page to show CRM data


Sample code: Using jqGrid in ASP.NET page to show CRM data

Just sharing a simple ASP.NET page that uses jqGrid to show contact records in CRM and allows user to search.

Here is the code SampleJQGrid.zip (remove .doc)

Hope it helps ..

Get current user language in JavaScript in CRM 2011/ CRM 2013/ CRM 2015


https://gallery.technet.microsoft.com/scriptcenter/LCID-JavaScript-Helper-7cfb0829