JS - Get Attribut via Xpath

Hi, a piece JS gets a String-parameter now from the ExcelTemplate.Spec.  const spec = JSON.parse(template.get("Spec")); How has the code to be changed in order to retrieve the “JsonSpecification.Spec”-attribute?   Thanks in advance!    
1 answers

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.