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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

First Name (Initial) + Last Name Field

(0) ShareShare
ReportReport
Posted on by 5

We've got a 'Label Name' field that is currently populating from a workflow that sets the field contents as: Title First Name Last Name

Is there a way to adjust the approach to that so it only selects the first initial of the first name instead? 

i.e. So, 'Mr John Smith' becomes 'Mr J Smith' instead

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    2,289 on at

    Hello,

    You need to use plugins to achieve the same. There is no OOB Behaviour available.

    Let me know if you need any queries further.

  • gisiquei Profile Picture
    Microsoft Employee on at

    Hi there, you would need an automation to achieve it. Plug-ins as Ramprakash  commented, but I also would suggest to evaluate Power Automate and workflows options.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi JB1991

    If you want to extract first initial of the first name field, workflow can't achieve it, you can use js code to achieve it:

    function getInitial(executionContext) {
        var formContext = executionContext.getFormContext();
        var firstname = formContext.getAttribute("firstname").getValue();
        var lastname = formContext.getAttribute("lastname").getValue();
    
        var initial = firstname.charAt(0).toUpperCase();
    
        formContext.getAttribute("new_labelname").setValue(initial   " "   lastname);
    }
    

    Steps:

    1.Go Settings > Customizations > Customize the system > Web REsources to create new:

    pastedimage1635476264135v4.png

    pastedimage1635476222477v3.png

    (2)Then expand Entities > select one entity > Forms:

    pastedimage1635476162690v2.png

    pastedimage1635476132572v1.png

    Save and Publish.

    (3)Test:

    pastedimage1635476893490v1.png

  • JB1991 Profile Picture
    5 on at

    Brilliant, thanks so much Leah.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 170 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 155

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans