Generating a New Output
1 min
When we are generating a new output we need to send the output name of the template we would like to generate to the sdk using the .generateNewOutput("myOutput") method. Generating a new output will automatically adjust the availableOutputs you get from the SDK, it is good practice to always refer to that method if any outputs have been generated. Assuming you have completed Getting Available Output Types, you can continue by doing the following:
.generateNewOutput("myOutput")
scribe.generateNewOutput(availableTemplates[0]);
//For demo purposes just default to first available template