Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Accessing data from other entity

(0) ShareShare
ReportReport
Posted on by 795

Hi All,

My requirement is that i want to sum up the total amount spent by customer in making orders and which is coming from a subgrid inside contact (i.e., different entity). I have achieved it using SQL query .. But can i do it using Charts or something else apart from SQL ?

Thanks for any help!

*This post is locked for comments

  • Suggested answer
    Mr Ramzy GHRIBI Profile Picture
    Mr Ramzy GHRIBI 345 on at
    RE: Accessing data from other entity

    a chart is based on a view , if you can have all amounts in one  view you can use SUM aggregate and show it in a chat.

  • NODAL Profile Picture
    NODAL 860 on at
    RE: Accessing data from other entity

    Hi ,

    If you just want to show this in a CRM OOB chart than you can store the SUM on Customer/Order entity by using javascript WEBAPI or custom c# code(Workflow activity/plugin).

    Otherwise you can create a SSRS/Power Bi Report and use "aggregation" in fetchxml to get sum.

  • CRM Beginner  Profile Picture
    CRM Beginner 795 on at
    RE: Accessing data from other entity

    Thanks for the reply , But can i display the amount using a Chart ? Can it be possible in Online Dynamics CRM?

  • Suggested answer
    Mr Ramzy GHRIBI Profile Picture
    Mr Ramzy GHRIBI 345 on at
    RE: Accessing data from other entity

    Hi, you can use JAVASCRIPT AND WEBAPI to retrieve data from another entities and calculate the SUM of the total amount :

    arunpotti.wordpress.com/.../how-to-retrieve-multiple-records-in-dynamics-365-online-v-9-x-using-javascript-webapi

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans