function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Isabell MaticIsabell Matic 

How to update all instances of a custom object in Apex to trigger a process on old instances of the object

Hi, I have made a process which gets triggered when an instance of the specific custom object is created or edited. 

The thing is I want the flow to trigger on old instances of the objects too, so the changes the process mades can be applied to the old instancens too.

To do so, I was thinking of using Apex, and just run through all of the instances of the object, and update them so the process "think" the instance is updated, but without actually editing them, so the process would be triggered. 

I do not know how to do this, I hope someone can help, I appreciate it! :)