i want to use this link:
santoshmscrm.wordpress.com/.../force-recalculate-rollup-fields-in-ms-crm-2015-programatically
how i must use it by create "post-entity-update" plugin ?
*This post is locked for comments
i want to use this link:
santoshmscrm.wordpress.com/.../force-recalculate-rollup-fields-in-ms-crm-2015-programatically
how i must use it by create "post-entity-update" plugin ?
*This post is locked for comments
Having the same error when the workflow runs...
'new_rfc' entity doesn't contain attribute with Name = '1'.
name is always equal to "rollup field value"
Is "Force Calculate Rollup Field" has bug?
Can anyone help resolve this?
Actually i am also facing the same Issue. Can you please suggest how you resolved this issue
problem solved .
thanks for all :)
'new_rfc' entity doesn't contain attribute with Name = '1'.
name is always equal to "rollup field value"
Is "Force Calculate Rollup Field" has bug?
I used the solution that you inserted the link : (https://github.com/demianrasko/Dynamics-365-Workflow-Tools)
i put one workflow on activity that use "Force Calculate Rollup Field" on "workflow-tools" solution, when activity update or create.
and insert "FieldName" and "Parent RecordURL" link to related my entity that contains rollup field.
my rollup field is on my entity that, caculate on activities related to my entity.
Hi Ehsan,
The code is having issue - please post your code here.
Thanks
Prateek
Sync workflow failed with error message - Unhandled Exception: Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: 'new_rfc' entity doesn't contain attribute with Name = '1'.
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)
, error code - -2147220891
CRM product calculate rollup using a job in every 12 hr. It doesnt happen synchronously.
If you want the value to get rolled-up synchronously then you need to write plugin code. The code need to trigger when the child entity gets created/updated(Post CREATE/Update).
So if the amount field on account get rolled-up values from all the opportunities then you need to write a Post-Update plugin on opportunity which will calculate the rollup value as shown in the link you shared.
but when i create plugin which message should I choose? ( assign, create, retrieve, revoke access, update, ... ) .
CREATE and UPDATE
and which message should I choose for pipeline stage? ( pre-validation, pre-operation or post-operation )
POST
and execution mode asynchronous or synchronous ?
SYNCHRONOUS
You can use solution here and this will save you from coding: github.com/.../Dynamics-365-Workflow-Tools
I'm really confused I tried it but it does not work.
If you want to recalculate the fields, you need an event to be triggered that would call the code to recalculate.
That event has to be one of the triggers that I mentioned above.
You can't have this run automatically unfortunately. That is by design. It will run after 12 hours.
To make it run, you would have to add code that would call the CalculateRollupFieldRequest/Response classes.
As I mentioned above, you would need to add the code to recalculate on the Create, Update and Delete Steps of the entity.
If this is for activities, you would have to add the steps to your activities, and verify that the regardingobjectid type is your entity.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156