
Announcements
Hi All:
I have a plug-in developed that calls the calculaterollupfield API function to force rollup field recalculation. The plug-in actually executes on CREATE, DELETE and UPDATE messages but the update portion does not produce a recalculated rollup field unless I am profiling that particular step via the Plug-in Registration Tool. There are no exceptions in the trace table, and I've debugged through the code and it's operating without issue; the plugin functions as expected on CREATE and DELETE but not UPDATE; very odd. It seems like the API function runs but the data in the child table has not been updated when it runs so the rolled-up value on the parent record doesn't change. If I call the same API function via an HTTP request from my browser like 30 seconds after the Power App saves the updated data, the rolled-up value is correct. The plugin uses a post image and executes post operation, I've tried it every way that's configurable and no joy. As I stated it seems like a timing thing, but I am at a loss for how to remedy the situation. Does anyone have experience with this? Looking for advice.