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)

Update Roll-up field immediately when a record is created

(0) ShareShare
ReportReport
Posted on by

Good Day

Please advise, I have a Roll-Up field on my form which is rolling up the total USD value from the subgrid. The issue is I have to manually update this roll-up, I need this roll up to update immediately when a new record is created.

please advise how do i do this?? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    prt33k Profile Picture
    6,907 on at

    There is a CalculateRollupFieldRequest message which enable to do tollup on demand.

    Detail can be found here : msdn.microsoft.com/.../dn817863.aspx

    A sample would be something like this:

    CalculateRollupFieldRequest objCalcRollupReq = new CalculateRollupFieldRequest
    	{
    	Target = new EntityReference(EntityName, ObjectGuid),
    	FieldName = NameOftheRollupField
    	};
    	CalculateRollupFieldResponse objCalcRollupResponse = (CalculateRollupFieldResponse)service.Execute(objCalcRollupReq);
    Entity objEntity = objCalcRollupResponse.Entity;


    Thanks,

    Prateek

  • Verified answer
    Community Member Profile Picture
    on at

    Hi There,

    Roll-up field updates every one hour. Through coding you can call CalculateRollupField to calculate the Roll-up field.

    please see the following URL:

    msdn.microsoft.com/.../dn817863.aspx

    Cheers,

    Emad

  • Verified answer
    Andreas Cieslik Profile Picture
    9,267 on at

    A workflow solution can be found here:

    msdyncrmworkflowtools.codeplex.com

    further answers and discussion are on this thread:

    community.dynamics.com/.../215980

  • Verified answer
    ashlega Profile Picture
    34,477 on at

    You can also use some existing workflow components like this one:

    msdyncrmworkflowtools.codeplex.com

    There is a custom workflow activity which you can use there..

  • Suggested answer
    Community Member Profile Picture
    on at

    great thank you

  • Community Member Profile Picture
    on at

    Loved the workflow tools thanks for the hint

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