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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

can´t update automatically rollup fields

(0) ShareShare
ReportReport
Posted on by

Hello, I need to update a custom rollup field automatically created in cases. It calculates the time of a case after posting on a service appointment. I mean, when a service appointment is created, updated or deleted; time changes in the case.

I tried with calculaterollupfieldrequest, but I have constantly bugs or nothin happens in the crm.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Anas Rafik Profile Picture
    365 on at
    RE: can´t update automatically rollup fields

    Just use this workflow utility is very helpful :

    github.com/.../Force%20Calculate%20Rollup%20Field.md

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: can´t update automatically rollup fields

    Hi,

    The syntaxt of calculaterollupfield message is simple. Refer below-

    ================

    CalculateRollupFieldRequest crfr = new CalculateRollupFieldRequest

       {

           Target = new EntityReference("new_class", classId),

           FieldName = "new_totalstudents"

       };

       CalculateRollupFieldResponse response = (CalculateRollupFieldResponse)service.Execute(crfr);

    ===================

    www.magnetismsolutions.com/.../ahmed-anwar&;s-blog/2014/12/01/microsoft-dynamics-crm-sdk-manually-calculate-rollup-fields

    Alternatively as suggested above, you can use Dynamics 365 Workflow Tools and use the pre-built activity to calculate rollup fields. This tool can be usefull for other needs as well if required.

    github.com/.../Force%20Calculate%20Rollup%20Field.md

    Hope this help

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans