Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to LEFTTRIM in MS CRM 2013.

Posted on by 15

Hi, 

is there a way to trim a string.

example: qwe123

I want it to return qwe.?

*This post is locked for comments

  • Suggested answer
    Kishor Kumar Profile Picture
    Kishor Kumar 3,702 on at
  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: How to LEFTTRIM in MS CRM 2013.

    Hi Rose,

    You can use substring function using Javascript to achieve this functionality.

    css-tricks.com/.../trim-firstlast-characters-in-string

    Hope this helps.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to LEFTTRIM in MS CRM 2013.

    If you are trimming using javascript use this:

    www.w3schools.com/.../jsref_substring.asp

    For C# refer below:

    stackoverflow.com/.../how-to-get-first-3-characters-of-a-textboxs-text

  • Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: How to LEFTTRIM in MS CRM 2013.

    Hi rose,

    Please provide more information.  Where do you want to trim the string?  In JavaScript, Plugin, or SSRS report?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans