Get the Datatype of attribute using JavaScript in CRM 2013/2015

Hi,
 
We can get the datatype of the attribute using JavaScript in CRM.
 
Here is the syntax for it.

Xrm.Page.getAttribute(“”).getAttributeType()

This method will return one of the following string values

  • boolean
  • datetime
  • decimal
  • double
  • integer
  • lookup
  • memo
  • money
  • optionset
  • string 

Hope this helps


Happy CRM’ing
Gopinath

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s