Microsoft CRM 3.0 Experiences

Wednesday, April 18, 2007

Changing the Default Call Duration on MS CRM Phone Call Activities

A quick problem I resolved today.

Phone Call Activity durations default to 30 minutes when you create them in Microsoft CRM 3.0.

To change this default to 1 minute I simply set it on the Onload event for the Phone Call Form which you can edit through the Customisation of the Phone Call activity. I used the following code in the Onload event:

var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;
switch (crmForm.FormType)
{
case CRM_FORM_TYPE_CREATE:
crmForm.all.actualdurationminutes.DataValue = 1;
break;
case CRM_FORM_TYPE_UPDATE:
// do nothing
break;
}

0 Comments:

Post a Comment

<< Home