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)

FetchXML Report showing odd field names in SSRS

(0) ShareShare
ReportReport
Posted on by 50

I ma trying to create a FetchXML report using Visual Studio 2015 using the fetch below

<fetch>
  <entity name="msdyn_timeentry" >
    <attribute name="msdyn_date" alias="Date" />
    <attribute name="msdyn_duration" />
    <attribute name="msdyn_project" />
    <link-entity name="systemuser" from="systemuserid" to="ownerid" link-type="inner" visible="true" >
      <attribute name="fullname" alias="Employee" />
      <link-entity name="new_clockworxpricing" from="new_clockworxpricingid" to="new_employeetype" >
        <attribute name="new_chargeoutrate" alias="ChargeOut" />
        <attribute name="new_chargeoutrate_base" alias="ChargeOutBase" />
      </link-entity>
    </link-entity>
    <link-entity name="msdyn_project" from="msdyn_projectid" to="msdyn_project" >
      <attribute name="msdyn_customer" />
    </link-entity>
  </entity>
</fetch>

All the fields show correctly except msdyn_customer which appears with a 7 char hex number in the middle as below

[msdyn_projectb82a0515_msdyn_customer] and doesn't show on the report when I run it.

Have I missed something in the link or is it something in the CRM that needs to change?

Thanks in advance for your help

Frosty

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at

    You should replicate this fetch using the FetchXMLBuilder. Then you will know if you fetch is correctly formatted or not.

  • Frosty8467 Profile Picture
    50 on at

    I used FetchXMLBuilder to create the query in the first place and it returns the data I want. It's when I get it in to SSRS I get these weird attributes that don't show anything.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Please try to add alias name -

      <attribute name="msdyn_project" alias='msdyn_project'/>  

  • Frosty8467 Profile Picture
    50 on at

    Goutam,

    Legend worked perfectly. Thank you so much.

    Seasons Greetings to you and yours.

    Thanks

    Frosty

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