Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to get associated case number and account number for a task

(0) ShareShare
ReportReport
Posted on by 2,409

Hi, I have a task activity in case. Now I want to get associated case number and account number through SSRS report, how can I get that? I am using SQL not fetchxml

*This post is locked for comments

  • prt33k Profile Picture
    prt33k 6,907 on at
    RE: how to get associated case number and account number for a task

    no..regardingobjectid is a the regarding lookup on Task. This will be the case entity in your scenario - however this can be account, contact, lead etc. It is a multiple entity type.

  • sdnd2000 Profile Picture
    sdnd2000 2,409 on at
    RE: how to get associated case number and account number for a task

    is not regardingobjectid associated with filteredactivitypointer?

  • Verified answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: how to get associated case number and account number for a task

    In SQL, I believe you are using filteredtask, filteredincident and filteredaccount views to get the data.

    filteredtask has regardingobjectid. which store the guid for parent of that task. You can join the task with filteredincident and get the case number.

    To get account number, you need to join again with account view on parentcustomerid field present in incident(case)

    Thanks,

    Prateek

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans