Dynamic return value of an expression or a cachevalue

Do you mean that you want to process each of the records individually?
I can only guess that you want to store in the application which records have changed so that you can do some health checking/exporting etc.

Is that correct?

The only thing that I can think of that could help is that you add a few extra steps to the “Do” branch of the “for each” (4). I would create a new record to track all mutations of any record after a specific datetime. For example:

N_RecordMutation
Record_reference_type: STRING
Record_reference_id: INT
Was changed after: datetime

Build a process similar to “Application log - Write log with dynamic record reference” in M6615 and add it to the “Do” branch of the for each. At a later stage you can process all “N_RecordMutation” records and process the linked records. You might also need to build a function is_linked_to_record(record to compare with) on the N_RecordMutation.