We were using SharePoint:DateTimeControl
in one of our Application Pages in SharePoint. The control returns current date time for SelectedDate if no date is selected.
To check for this we can use IsDateEmpty property.

We were using SharePoint:DateTimeControl
in one of our Application Pages in SharePoint. The control returns current date time for SelectedDate if no date is selected.
To check for this we can use IsDateEmpty property.

Data Types and Function Supported
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 |
Data Type supported
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.

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.








Business rules were added to CRM 2013 and a way to provide client side scripting/validating/field or section hiding without having to write any JavaScript. For context server side customization’s are plugins/workflows (e.g. code written in C# is executed on the server)
Business rules are also known as portable business logic (although I don’t know anyone who calls them that) because they also work on the mobile app.
All the features above were usually done using Javascript in CRM 2011.
I have written a quick guide to business rules here
Business rules are useful because they allow non developers to provide the functionality mentioned above on forms. Business rules can be used on Main and…
View original post 1,180 more words