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)

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
    Re: Combine First Name and Last Name Field to Full Name Field

    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
    651 on at
    Re: Re: Combine First Name and Last Name Field to Full Name Field

    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
    Re: Re: Combine First Name and Last Name Field to Full Name Field

    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

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
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans