*This post is locked for comments
*This post is locked for comments
Hi Alex, I tried that and as an on-demand, doesn't trigger the calculation, im on dynamics 2016 on-prem, hopefully we will be on dynamics 365 on-prem by end of next week
I'm wondering, then.. what if you registered a workflow to run "oncreate" of those entities? That would be an equivalent of having a "retrieve", and you don't need to do much there (maybe just add a step to stop the workflow..)
I asked that question because I tried exactly that scenario, but, admittedly, in 365.. If I use a workflow to create a record which has a calculated field, that field seems to be populated correctly.
Because the record is being 'cloned' ie created by a workflow, the calculation isn't performed. You can see this by running an advanced find on the cloned records and the calculated field will be shown blank, and subsequently you cannot run any other workflows against that field because its blank.
Yes the field is calculated when it's retrieved but that only seems to mean 'when someone opens the record' as soon as you open a cloned record fully, the field is calculated.
This presents a problem because it means you can't clone records because resulting calculated values will always be blank, unless you force the user to open the record.
Hi Wal,
are those calculated or rollup fields?
https://msdn.microsoft.com/en-us/library/dn817863.aspx#BKMK_Calculated
"Calculated attributes are calculated in real-time when they are retrieved."
What does it look like - how do you know they are empty?
Will this work for calculated fields as well as rollups then?
Hi,
Have a look at this set of custom workflow activities:
msdyncrmworkflowtools.codeplex.com
There is a Force Calculate Rollup Field step in the solution
Regards
Bharat
Hi Weldarb, I have exactly the same issue, did you find a solution? Ill post here if i figure it out.
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