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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

need to check the field value of one of the entity for all the records

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I have entity subscriber and field subscriber status in it. I would like to check the subscriber status value for all the records like which are active and expired.

With this condition I would like to set counter value , how many active subcriptions and expired subcriptions.

Finally I need to display those count values in some field in same entity or different entity. 

Would you please help me here. I have been stuck.

I have the same question (0)
  • Suggested answer
    Pedro Azevedo Profile Picture
    830 User Group Leader on at

    Hi Venkatesh,

    The perfect situation is you have a parent entity where you can see all the subscriber and you can create a rollup field. This rollup field you can configure to calculate all the subscriber in a specific state. If you don't have that field and you have some entity where you have statistics you can register a plugin or a Power Automate whenever there is an update or create increment or decrement the value.

    In the same entity you could use the plugin approach as well, but you will need to update all the other subscriber, like that whenever you open any subscriber record you could see the right value, but this approach and depending the number of records can reach easily the 2 min. and you need to control very well the Depth of that plugins.

    If you don't need to have that value always updated in the backend, is calculate that value through a Javascript or having a PCF that does that calculation and like that you a live value.

    Thank you,

    Pedro Azevedo

  • Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    You can create rollup field to count the child records based on filter condition -

    docs.microsoft.com/.../define-rollup-fields

  • Venkatesh T J Profile Picture
    10 on at

    Hi Binay, I tried using rollup field, but it doesn't giving the result.

  • Venkatesh T J Profile Picture
    10 on at

    Hi Pedro, I tried using roll up field, but it doesn't giving the result. And I am new to dynamics CRM. So I am expecting the sample plug in code to achieve this

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Can you please share screenshot of your roll-up field configuration and what is not working?

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

    You should go with rollup field instead of writing code  as suggested above without writing any code.

  • VenkateshTJ Profile Picture
    35 on at

    query1.PNG

    Hi bipin,

    I am attaching the screen shots as you requested, I have created the rollup fields in contacts records, putting the variable into header of contact entity, the rollup field getting value from subscription line entity based on value of subscription status field on it

    screen-2.PNGscreen-3.PNG

  • VenkateshTJ Profile Picture
    35 on at

    Hi Bipin, I have attached screen you requested in the same page, would you please check and advise, why the result is not showing up properly

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Can you please add rollupfield_status and rollupfield_date field on the form to see the content.

    _status field will tell you the reason of failure calculation

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 77 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 45

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans