Dynamics CRM 4.0, SSRS Activities Report, Phone Call, Appointment Fields

Posted on 2011-05-04
Last Modified: 2012-05-11
I am writing a SSRS Activities report to import into CRM on Email, Phone Call and Appointment activities.  Can anyone tell me where to find the Recipient field for a Phone call activity and the Required field for an Appointment activity.
Question by:sbdt8631
    LVL 6

    Accepted Solution

    The following query will return all names who are any type of recipient for phone calls, and all required attendees for appointments:

    SELECT person.partyidname,
    FROM FilteredActivityParty AS person
    INNER JOIN FilteredActivityPointer AS CRMAF_activity ON person.activityid = CRMAF_activity.activityid
    WHERE CRMAF_activity.activitytypecodename IN ('Phone Call', 'Appointment') 
         AND person.participationtypemaskname IN ('To Recipient','CC Recipient','BCC Recipient','Required attendee')

    Open in new window

    LVL 1

    Author Closing Comment


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Delete data from a table 25 49
    Upgrading SQL 2005 Express to 2008 R2 Express 31 33
    Alter table to increase max Len 6 16
    space 16 17
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
    Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now