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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Remove first 2 digit of a Mobile number

(0) ShareShare
ReportReport
Posted on by

Hi guys,

I have a requirement to remove first 2 digit of a 12 digit phone number and set this trimmed value in a field. How do i do this in a plug in?

Suppose, I have a 12 digit phone number 918989898989 how do i remove the first 2 digit 91 and set the number as 8989898989 in another field of the same entity.

Any Suggestions?

Regards,

Hima

*This post is locked for comments

I have the same question (0)
  • Verified answer
    JayeshAC Profile Picture
    1,157 on at

    Hi Hima

    You can use substring in javascript.

    Example: "cat1235".substring(3)

    Result : 12345

  • Verified answer
    Community Member Profile Picture
    on at

    HI,

            THis may help.  userdefinedstring.Substring(2), this will get you the rest of your string and then you can manipulate the way you want it.

    Best Regards

    Shah

  • Community Member Profile Picture
    on at

    Thank You so much Jayesh & Shah i used the substring method in the plugin and it works perfect.

    Regards,

    Hima

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans