If you are running Java codegen (which you absolutely should be doing), you can use FooDetails.byKey(new Tuple2<>(custodian, id)).exerciseFinalize(fooId, results)
to create an Update<Unit>
, which represents the command.
1 Like