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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Retrieve all Rollup fields in an organizations

(0) ShareShare
ReportReport
Posted on by 3,315

Hi all,

Is there any Plugin class to retrieve all Rollup fields in an organization.?

My requirement is I want to update all rollup fields forcefully. Now I am able to update only one rollup field at a time. So I want to retrieve all rollup fields. Is it possible?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    You can change the rollup field calculation Job's schedule to run it every hour. You will not have to write a code for this.

  • shivaram Profile Picture
    3,315 on at

    Hi Vikas,

    Thank you so much for your quick response.

    But my requirement is, I want to update rollup field values through programatically. I can set the time for 1 hr. But I don't want that. I want to see the result Immediately.

    Is there any option for this using Plugin?

  • Verified answer
    shivaram Profile Picture
    3,315 on at

    For Run one rollup field, I used following link,

    It was really helpful

    santoshmscrm.wordpress.com/.../force-recalculate-rollup-fields-in-ms-crm-2015-programatically

  • Verified answer
    Community Member Profile Picture
    on at

    There is one way. I have not done something like this but it might work. You need to search the matadata of each required entity, for each entity search for rollup fields using field type and run rollup job for each field. This would take a lot of time and the plugin/workflow might go beyond 2 min limit in CRM online.

  • shivaram Profile Picture
    3,315 on at

    Yes, you are correct. This way, we can achieve. But its not good practice. So As of now I am running few rollup fields, which are required that moment.

    Thanks for your support.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Check this KB msdn.microsoft.com/.../dn817863.aspx

    Hope it will help.

    Thanks

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    If you are looking for updating all the roll-up fields of specific entity, I believe you can use the default functionality of Dynamic CRM.

    Please refer here :

    https://vjcity.blogspot.com/2019/06/how-to-change-frequency-for-rollup.html

    If you want to update all the rollup field by yourself, why you are using roll up field altogether, instead go for normal field according to your requirements.

    you can also save your formula in javascript webresource and retrieve the formula from there and update the value accordingly.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans