September 21, 2011 · Dataverse SDK · 0 min read · apurvghai · C#
This post talks about formatting phone number is US style. The code already available in CRM v4 SDK Guide, however I have re-written the same thing in CRM v2011 model. It only part of code which is different here in the usage of context class available in XRM pattern. function validatePhone() { var phone = Xrm.Page.data.entity.attributes.get("telephone1"); var sTmp = phone.getValue().replace(/[^0-9]/g, ""); phoneRegex = /^d{10}$/; if(!sTmp.match(phoneRegex)) { alert("Phone must contain 10 numbers.") ; } else { switch(sTmp.leng...This article was originally published on Microsoft Learn (foremerly known as Microsoft MSDN) Read the original article here.
Getting started with Dynamics 365 CRM SDK in C#
Jan 14, 19 by apurvghai
Using Postman with Dynamics 365 Online and OnPremise
Jan 14, 19 by apurvghai
Getting Started with WebAPI
Dec 28, 18 by apurvghai
Dynamics 365 – WebAPI CRUD Operations (C#)
Jul 04, 17 by apurvghai