Hi @CatherineChee
The issue is the Xtension itself, not the way you are using it.
You may be better off creating your own Xtenstion that just downloads the file.
Another thing to consider with NWC tools is that you need to ask yourself, “Who owns this endpoint and is my data secure”? It sounds like you are downloading signed documents. Doesn’t sound like something I would like to be passing to an unknown source.
Here is a fixed version of the decode endpoint. The issue is that the file downloaded is called base64decodedfile.bin, and the only way to change the name would be to store the file in google drive and use Nintex's rename a file action to rename the file.
{
"swagger": "2.0",
"info": {
"title": "Definiti Tools",
"version": "1.0.0",
"description": "Decode Base64 and return file"
},
"host": "nwctools.azurewebsites.net",
"schemes": ["https"],
"x-ntx-render-version": 2,
"paths": {
"/api/v1.0/base64decodefile": {
"post": {
"summary": "Decode Base64 File",
"consumes": ["application/json"],
"produces": ["application/octet-stream"],
"parameters": [
{
"in": "body",
"name": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"content": {
"type": "string"
}
},
"required": ["content"]
}
}
],
"responses": {
"200": {
"description": "Binary file output",
"schema": {
"type": "file"
}
}
}
}
}
}
}