We have recently added program rules setting values to some data element to an existing program with some thousand events. Those works well, and each time we open a specific event we see them computed and the values correctly set in the related Data Elements.
The problem is now that we would like to “trigger” the rules on all our events. Our logic would be to call the API and iterate using a small script, but we’re unsure how to “force” DHIS2 to trigger program rules on a single event - any tips here?
Looks like the new APIs are working. I gave it a try on 2.38.1.1 by adding a new program rule to assign a value and I was able to successfully assign value to past event records and update them. But unfortunately the Import/Export app is still using the old APIs. The procedure which I followed requires some technical expertise. If you are interested to know the process I followed, I would be happy to share.
Yes, I would appreciate more information about your process. We have a number of different cases where we would like to trigger the PRs across multiple events.