Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

rename attributes from fetchxml

Posted on by 2,397

Is that possible to rename the attributes got from fetchXML, for example, the attributes come with "new_xxx", how can I rename it like "xxx"

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: rename attributes from fetchxml

    Where are you using the fetchxml?

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: rename attributes from fetchxml

    Hi,

    You could use Alias in FetchXML.

    See: https://www.inogic.com/blog/2014/03/use-of-alias-in-fetchxml/

  • Verified answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: rename attributes from fetchxml

    Hi sdnd,

     there is an "alias" parameter, but it's probably not what you are looking for:

     mscrmtutorials.blogspot.ca/.../using-alias-in-ms-crm.html

     Why do you need other names? Attribute display names will show up in the view column headers (that will never be new_... , that will be a display name). In the custom SSRS reports, you can give those columns whatever name you choose.

     Are you testing fetchXml with something like XrmToolBox and just want to see friendly attribute names their? That's, probably, not possible..

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans