Tuesday, October 4, 2011

JavaScript: Types of FormType in MS Dyanmics CRM 4.0


Form Types of CRM Form:

Is the user creating a new record?
crmForm.FormType == 1
Is the user updating an existing record
crmForm.FormType == 2
Is the user unable to update this record?
crmForm.FormType == 3
Is this record deactivated?
crmForm.FormType == 4
Is the user using the Quick Create form?
crmForm.FormType == 5
Is the user using the Bulk Edit form?
crmForm.FormType == 6


Some other important CRM Form Terms:

What is the unique ID for this record?
=crmForm.ObjectId
What type of record is this?
=crmForm.ObjectTypeCode
What type of record is this (Entity Name)?
=crmForm.ObjectTypeName
Is the user using the Outlook Client?
crmForm.IsForOutlookClient==true
Is the user using the Outlook Light Client?
crmForm.IsForOutlookLightClient == true
Is the user working On line?
crmForm.IsOnline==true
Have any fields in this form been changed?
crmForm.IsDirty==true