I am trying to grab values from an excel spreadsheet that has been uploaded to a CRM called "Zoho" and the only way to read the file is to download the file through Zoho's own API. However, when trying to download an .xlsx file through the API, the file is encoded and I cannot figure out how to decode it and read the file. The request, when completed, returns a plaintext file with many question marks in it. What is the correct way to decode the file/is there a better way I could be doing this? Ultimately I want to read the value from the file, then make another request to another API to update a value; at no point do I need to download the excel file locally.
Here is the documentation for the Zoho API: https://www.zoho.com/docs/zoho-docs-api.html
Here is a code snippet where I make a request:
And finally this is what the result looks like:
Any help would be greatly appreciated!
Related
I need to read the excel attached within an incident in BMC Remedy. I am already connecting to Remedy via REST and can read the attachment but the thing is that it gets converted to String so only text based files like .txt, .log or .csv could be read but if at all the excel is attached obviously since it is not text based all I receive is gibberish.
So I am looking for a REST call that can read the excel and if cannot(which is quite possible) I am looking for a REST call with which I can download the excel locally.
Or if anyone has any other suggestion that would be really helpful
I'm trying to get all documents in an envelope as a single PDF, if I call this REST API URL:
/v2/accounts/{$accountId}/envelopes/{$envelopeId}/documents/combined
It returns a bunch of data, however, I can't find a way to store this data as a valid PDF. When I output the content with headers it does download a file, but it's not a valid PDF. Also when I store the content in a file, it will not be a valid PDF file.
Anyone encountered this problem and knows how to solve this?
The content comes back as a file, you have to read the temp file and save that to the desired file
Quick snippet using file_get_contents and file_put_contents
$docStream = $envelopeApi->getDocument($accountId, 1, $envelopeId);
file_put_contents("my_document.pdf", file_get_contents($docStream->getPathname()));
More info DocuSign REST API :: EnvelopeDocuments: get under Get a Single Document as a PDF File
I am new to NiFi but i want to make a flow in NiFi in which i will take a .xls file from a FTP point and convert it to JSON file and put it in websocket server. But there is no processor regarding Excel. It will we a great help if someone let me know how to do it?
NIFI-2613 This feature is in progress
In the meantime,
First, please try to use the option provided XLS to CSV. Basically use the provided script to convert xls to csv.
Then, follow Nifi CSV to JSON to achieve your goal
I am new to django-rest and want to ask, if there is a simple way to upload an xlsx file and read the data from it with django rest and angular2. I would like to have the possibility to read the file from specific row.
Any help is appreciated. Thank you.
I'm having a very hard time accomplishing my main goal: extracting data from an xlsx excel file
I'm running ExtJS + node.js, and I see two options:
Use this XLSX.js framework to convert the base64 string into js object-representations of xlsx worksheets for me to use. Problem is, I have no idea how to get a base64 string from an xlsx file..
Upload the xlsx file to the server, do the conversions there using node-xlsx, the send the object-representations back ala json. Having lots of difficulties here since ExtJS doesn't use real AJAX for file uploads so I don't know how to send the results back..
Has anyone had experience with this or could advise a solution? Having lots of trouble..
Number two is going to be the better option IMO. You can take a look at the FileUploadField control - there is a good example on submitting the Form that will upload the file to the server: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.File
From there you can parse and return the json.
Since we struggled with exactly the same issue, we created a front-end XLS(X) and CSV import and export tool that you can use in ExtJS 4 applications with a few lines of code. The user just drags the file on the grid and done. We just launched it, here is a description of the problematic in dealing with files and the solution: http://2gears.com/2014/08/ext-js-excel-import-export-easy/
Hope it helps.