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)

Manually force recalculate rollup field using Javascript ?

(0) ShareShare
ReportReport
Posted on by

Hi everyone!

I want to force recalculation of rollup field using Javascript . This can be done using plugins like in the link below 

https://santoshmscrm.wordpress.com/2015/06/20/force-recalculate-rollup-fields-in-ms-crm-2015-programatically/

However what is the javascript equilavent to this ? Can XrmToolkit libraries help to do that?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    abhishek_255 Profile Picture
    1,614 on at
    RE: Manually force recalculate rollup field using Javascript ?

    Hi-

    You can invoke calculation within javascript through Web API.

    msdn.microsoft.com/.../mt718083.aspx

    The CalculateRollup Function in Web API is only available in Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online.  Apart you can use Soap endpoints

    msdn.microsoft.com/.../gg594434(v=crm.5).aspx

    Best Regards,

    Abhishek

  • Community Member Profile Picture
    on at
    RE: Manually force recalculate rollup field using Javascript ?

    Hi! 

    I personally have never came across this in JavaScript. Alternatively, you can create a Workflow with functional like this and call it with JavaScript. There is an example of it: https://community.dynamics.com/crm/b/mscrmcustomization/archive/2016/05/06/calculate-rollup-fields-on-button-click 

    Hope this helps

     

    Vlad

    dynamicalabs.com

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

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans