Modify fields in of a CDT in an expression rule

Hello, is there a way to make an expression rule with a CDT as an input, that modifies one (or more) field(s) of the CDT, and returns the updated CDT (with the new and old entries, based on what was changed) WITHOUT having to declare each CDT field on the return, just the name of the CDT? I have some trouble testing it but I am thinking it would be something in the spirit of:

=load(
local!temp: {name:"John",id:3},
local!temp.name = "Nick",
local!temp
/* and not like this {name:local.temp.name,id:local!temp.id}*/
)

OriginalPostID-184208

OriginalPostID-184208

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data