Hi All,
I´m on BO 4.1 SP5 trying to export an excel sheet, using javascript, to the repository.
I´m getting an HTTP 500 error.
Following is my code
bodie = '--10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe \
Content-Disposition: form-data; name="attachmentInfos"\
Content-Type: application/xml\
<spreadsheet>\
<name>//lambari/pmae-d/corporativo/usuarios.xls</name>\
<folderId>234707</folderId>\
</spreadsheet>\
--10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe\
Content-Disposition: form-data; name="attachmentContent"\
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\
... Excel 2007 document as a binary stream...\
--10f3211b-66e8-4b14-93ec-b11ec5c19a43-41d3c84c-d157-4377-aba9-41353b9a4dfe--'
// ==================================================================================================
var docum = new XMLHttpRequest();
// url da consulta
var url = 'http://vrt0568.bndes.net:6405/biprws/raylight/v1/spreadsheets';
docum.open('POST', url, false);
docum.setRequestHeader('X-PINGARUNER', 'pingpong');
docum.setRequestHeader('Content-Type', 'multipart/form-data');
docum.setRequestHeader('Accept', 'application/xml');
docum.setRequestHeader('X-SAP-LogonToken', tokenDec);
docum.send(bodie);
Am I using the right url ?
Cheers,
Rogerio