let allAttachmentsForThisRecord =brixxApi.getAttachmentsForCurrentRecord();let invoices =allAttachmentsForThisRecord.filter(singleAttachment => {returnsingleAttachment.documentTypeId ==2}); //We assume, that there is just one invoicelet attachmentBlob =brixxApi.getAttachmentById(invoices[0].id);brixxApi.printBlob(attachmentBlob)