Read File/Download File Button in VBCS Page
Summary:
I have to make a download file button in my VBCS page. I wrote one integration which brings the binary content of the file in the response body. But when I call this integration/endpoint in VBCS so it doesn't bring the same response. Am I doing it wrong?
Content (required):
This is sample response in OIC:
Endpoint response in VBCS ;
I am using this action to get the file and javascript to make it a download link;
JS function mapping;
JS Function:
PageModule.prototype.downloadFile = function (data, mimeType, filename) {
const blob = new Blob([data], {
type: mimeType
});
// IE/Edge
Tagged:
0