# Dynamic return value of an expression or a cachevalue

**URL:** <https://community.novulo.com/t/dynamic-return-value-of-an-expression-or-a-cachevalue/534>\
**Category:** \[Q&A\] General\
**Created:** [October 28, 2024, 9:41pm UTC](https://community.novulo.com/t/dynamic-return-value-of-an-expression-or-a-cachevalue/534 "2024-10-28T21:41:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![j.batzke](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.novulo.com/j.batzke/32/9_2.png) [@j.batzke](https://community.novulo.com/u/j.batzke)\
**Post date:** [October 31, 2024, 8:56am UTC](https://community.novulo.com/t/dynamic-return-value-of-an-expression-or-a-cachevalue/534/5 "2024-10-31T08:56:42Z")

</div>

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)](https://community.novulo.com/t/creating-application-logs-for-your-processes/208/8) on the N\_RecordMutation.

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/novulo/original/1X/a0c2c75e0fb1e7ee902062c202421e22f6edb418.png)

---

_[View the full topic](https://community.novulo.com/t/dynamic-return-value-of-an-expression-or-a-cachevalue/534)._
