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)

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
    703 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

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