Hi Tjark,
in that very specific example, “template” is a parameter of type ExcelTemplate passed to the custom JS Action.
In order to use the one from the “JsonSpecification” you can either pass that directly as an additional parameter, or you need to retrieve it in the JS action via the ExcelTemplate_JsonSpecification association first.