UDF automatic update

SOLVED

Good morning,

can anyone tell me if it is possible to automatically value a UDF of an entity starting from another entity? For example, if I link the same UDF to a mortgage and its cash flow, I would like it to appear the same on the connected flows when valuing it on the mortgage.
I see that on the UserFieldsLinks table there is the Behavior section and, in particular, the CalculatedValue and Validation / Initialization Script fields that might be right for me, but I need to know the syntax.