how to take a macro value from one function and put it into the macro value of another function

what I'm asking is: will this command work? $function redacted:class-table/page/1/values {id:"$(id)", power:"$(power)"} the id and power values are applied to this function from: function redacted:class-table/page/1/result {id:"archer",power:"restock"}
Continue to help post