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 :
Microsoft Dynamics CRM (Archived)

Combine First Name and Last Name Field to Full Name Field

(0) ShareShare
ReportReport
Posted on by 250

Hello,

 I have created a new entity with the First Name and Last Name Fields with Full Name Field as the Primary.  Can somebody please tell me how to combine the First Name and Last Name Fields to the Full Name Field (Similar to the default Contact Entity)?  Thank you.

*This post is locked for comments

I have the same question (0)
  • Yaniv Arditi Profile Picture
    3,990 on at

    Hi,

    Put the following code in the new entity form onSave event or in the first name & last name field onChange event: (replace field names)

    crmForm.all.[fullname field schema name].DataValue = crmForm.all.[firstname field schema name].DataValue + " " + crmForm.all.[lastname field schema name].DataValue;

    Hope this help,

    Yaniv Arditi
    http://blogs.microsoft.co.il/blogs/rdt/

     

     

  • Inogic Profile Picture
    754 on at

    Hi,

    Scripts only fire from the form and when you manually save them.

    In case you already had entries or there were other ways of inserting data into this entity like some kind of external integration, you may want to create a workflow instead that will update the full name with the first name and last name.

    HTH

    Sam

     

  • Mike Mondala Profile Picture
    250 on at

    Yaniv,

     It Worked!!!!!  Thanks for your help.

     Mike

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans