web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Reporting question

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm using Business Intelligence Studio to generate report files and I have a requirement to retrieve data from Email, Service Activity, Appointment, Recurring Appointment & Phone Call entities. Each of these activities have a similar set of custom fields and I need to be able to collect all of them to a single report if possible. Is this possible or do I need to create separate reports for each activity mentioned above?

Any help would be very much appreciated.

Thank you

Lavanya

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Bruno Lucas Profile Picture
    5,421 on at

    are you looking for something like this? this will do for all activities: tasks,email,appointment,phone call,letter,fax, service activity

    SELECT Main.activitytypecodename AS activitytype,

    Main.subject AS subject

    FROM FilteredActivityPointer AS Main

    LEFT JOIN FilteredTask AS Task ON Main.activityid = Task.activityid

    LEFT JOIN FilteredEmail AS Email ON Main.activityid = Email.activityid

    LEFT JOIN FilteredAppointment AS Appo ON Main.activityid = Appo.activityid

    LEFT JOIN FilteredPhoneCall AS Phone ON Main.activityid = Phone.activityid

    LEFT JOIN FilteredLetter AS Letter ON Main.activityid = Letter.activityid

  • Community Member Profile Picture
    on at

    Yes!! I was thinking of doing a UNION. But wasn't sure how to do it properly. Thanks a lot for your quick response.

  • Bruno Lucas Profile Picture
    5,421 on at

    you can do a union also. you can try and compare on query analyzer to see which one performs better. I know there is some catch between using UNION and UNION ALL that can affect performance

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans