web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Business rule - phone number

(0) ShareShare
ReportReport
Posted on by 1,023

Hello Team

I wanted to create a business rule where my phone number cannot contain any alphacharacters.

I am trying to create this business rule , is there any way to mention the values at a time instead  of mentionin the multiple OR conditions.

For ex. For this logic I am mentionin like

If phone number contains A, or if Phone number contains B or .....

I am expecting some ting like if Phone number contains A, B, C

Can something similar  to this be achieved in Crm.Any help or guidance is highly appreciated.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahadeo Matre Profile Picture
    17,021 on at
    RE: Business rule - phone number

    Hi,

    Instead of business rule you can achieve this using JavaScript.

    using regular expression you can check is there any alphabets in phone number field and you can remove those.

    if you are using CRM 2016, then you can use KeyPress methods to remove alphabets.

    here is example

    mahadeomatre.blogspot.com/.../keypress-methods-in-ms-crm-2016.html

    If you are using older version of CRM then write javascript on phone attribute onChange and remove alphabets.

    Hope this will help..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans