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)

Full Name -Contact Javascript Doubts!! CRM -2013 On Premises!!

(0) ShareShare
ReportReport
Posted on by 3,710

Hi,
Good Evening!!

I have doubt how to fetch the value of FullName filed in Contact Entity using Javascript? 

One More doubt is that whether we can use AngularJs in Ms CRM??

Thanks in advance!!

Happy!!! CRM ing :)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sayhaitokumar Profile Picture
    7,042 on at

    Hello Kishore

    FullName is composite field of Firstname and LastName, you need to write JavaScipt to get that value

    For more info msdn.microsoft.com/.../dn481581.aspx

    www.magnetismsolutions.com/.../working-with-dynamics-crm-2013-composite-fields-fly-out-menu

  • Verified answer
    shivaram Profile Picture
    3,315 on at

    Hi Kishore,

    we have single line code for that right like

    Xrm.Page.getAttribute("fullname").getValue();

    And yes,you can use AngularJs in CRM,

    But CRM trust only internal things.So if you are using AngularJS then you need to authenticate again.

  • Kishor Kumar Profile Picture
    3,710 on at

    Hi Shivaram,

    I had user as you said but it's shows as undefined.

    Could you guide me!!

  • shivaram Profile Picture
    3,315 on at

    Okay.Did you check the schema name of "fullname" in your CRM.??

  • Kishor Kumar Profile Picture
    3,710 on at

    Hi Guido Preite,

    Thanks for your reply!!

    Yeah,Fields is in body of the form,but when am using this Xrm.Page.getAttribute("fullname").getValue(); am getting undefined,

  • Aileen Gusni Profile Picture
    44,524 on at

    Kishor,

    Check this:

    Xrm.Page.getAttribute("fullname")

    Is that undefined or null itself?

    Thanks

  • Kishor Kumar Profile Picture
    3,710 on at

    Hi Aileen Gusni,

    I have achieved it, it was some other errors in the code any way thanks for your reply!!

    function NameCompConc()

    {

    debugger;

    var Company = new Array();

    var myCompany=null;

    var guid =null;

    var entType =null;

       Company = Xrm.Page.getAttribute('parentcustomerid').getValue();

       if (Company != null)

       {

         myCompany= Company[0].name;

          guid= Company[0].id;

          entType= Company[0].entityType;

       }

    var Name =  Xrm.Page.getAttribute('fullname').getValue();

    var NCompany = Name + "-" + myCompany;

    Xrm.Page.getAttribute('nickname').setValue(NCompany);

    }

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