I'm trying to integrate with Microsoft OneDrive service. I read API docs and went throw Authorization. Unfortunatelly, there's no info in docs about creating different File types.
I created a .txt file using HTTP Requests as it's written here https://dev.onedrive.com/items/upload_put.htm .
When I'm trying to create an Excel file this way, it does, but the document doesn't open. I think I need to send some special params (metadata?) also, but I don't know which ones.
I would be very pleased for any help :)
Related
I have a problem, that I want to write a Client-Application, which uploads a CSV-File with about 700 lines to a SharePoint Online-List. I just found the function to upload a single line to a SharePoint list in Microsofts Graph & SharePoint API. This works but takes forever, as I have to wait for the respond of the server, before uploading the next line.
Is there an API or some way to parse and upload the CSV-File as whole into a SharePoint-Online list in order to get my Application working faster?
I just can't believe, that this is the only way to handle this problem.
Best regards
Chrissi
try this
It updates the SharePoint List from CSV
Maybe you can use similar logic.
https://sshareasolutions.com/2020/04/25/update-sharepoint-list-with-csv-file-using-jquery/
I would like to create files under a folder in sharepoint library if that specific folder exists. Else I will create a folder and create files. I would like to do this using MS FLOW. ANy help or ideas on this are highly appreciated.
I tried the following method
Created a FLOW on an item created event.
created a rest api GET request for the document library with the folder name as a variable
then create a decision tree after this which will check if the value returned from rest is empty or not.
The problem is its continuously retrying in the rest api step. Could someone tell me how to do this more efficiently.
We can use create folder action with in the flow, based on output value true/false we can check folder existed or not with in the document library.
To create folder with in the document library check below link.
https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/MS-Flow-Create-new-folder-action/ba-p/355632
I am trying to automate some simple updating of a Google spreadsheet and I'm using the gspread library to do so. One task that is critical and not currently supported by gspread is the ability to add comments to a specific cell (there's an open issue for this and even a gist solution but I was getting a 404 error when trying to use it).
I know that the Google Drive API (v3) supports adding comments as described here, but I'm having issues with authenticating and could use some help.
What I have/know:
I have already setup the OAuth 2.0 and registered for the API through Google, as well as have the client_secret.json in my directory, but my knowledge of web requests and responses is limited so going through the Drive API documentation hardly makes sense. I know in order to create the comments I will have to make use of anchors and specify the cell location using column/row numbers.
What I'm stuck on:
When using the Google API Explorer, I'm getting a 400 error with the message: The 'fields' parameter is required for this method. How can I make the POST request using my authentication? I think from there I'd be able to actually add the comments myself.
I'm getting a 400 error with the message: The 'fields' parameter is required for this method
The error is asking for a property which you want returned (these properties are listed in Drive API files resource).
You can just place ' * ' to indicate you want it to return a complete response. That's the quick fix.
I have a sheet that has been shared with me. It has permissions set so that everyone in our company can read it.
I am trying to use Python to read info from this sheet, but am getting PERMISSION_DENIED. Using the same credentials file I can access any other sheets in my Drive, but not this one I have had shared with me - even if I add it to my drive.
What am I missing here?
The code I am using is from Google's own quickstart with the ID, range and print lines modified. I do not need to go much further than that.
When I test it with Google's own example it works fine.
If you are using a json file as credentials and the json was created as a Service Account, open that json and retrieve the client_email inside it.
Now make sure that the owner has shared the spreadsheet you are trying to read with that email (usually it ends with .gserviceaccount.com)
I want to export a table to an Excel file. I need to export a report.
ORA_EXCEL.new_document;
ORA_EXCEL.add_sheet('Sheet name');
ORA_EXCEL.query_to_sheet('select * from mytable');
ORA_EXCEL.save_to_blob(myblob);
I saved my table to blob.
How do I export/respond to the user (client)?
I need something that is simple to allow a user to be able to download an Excel file to their own computer. I tried doing this procedure in an Oracle workflow:
ORA_EXCEL.save_to_file('EXPORT_DIR', 'example.xlsx');
But this did not help, because it is saves the file to a directory on the server and I need it in the real server.
The way I have handled similar issues in the past was to work with the systems people to mount a directory from either a web server or file server on the Database server.
Then create a directory object so that the procedure can save to a location that is accessible to the user.
If the files are not sensitive and there are a limited number of users then a file server makes sense as it is then just a matter of giving the user access to the file share.
If files are sensitive or this is a large number or unknown users we then used the Web server and sent a email with a link to the user enabling them to download their file. Naturally there needs to be security built into this to stop people being able to download other users files.
We didn't just email the files as an attachment because...
1) Emails with attachments tend to get blocked
2) We always advise not to open attachments on emails. (Yes I know we advise not to click on links as well but nothing is perfect)
Who or what is invoking the production of the document?
If it´s done by an application, which the user is working on, this application can fetch the BLOB, stores it at f.e. TEMP-Directory and calls
System.Diagnostics.Process.Start("..."); to open it with the associated application. (see Open file with associated application)
If it´s a website, this one could stream the blob back as Excel-Mimetype (see Setting mime type for excel document)
Also you could store in an Oracle-DIRECTORY, but this one has to be on the server and should be a netword-share to be accessible for clients (which is rarely accepted in a productive environment!)
If MAIL isn´t the solution, then maybe FTP can be a way to store files in a common share. See UTL_TCP - Package, with this a FTP-transfer can be achieved (a bit hard to code, but there are solutions to find in the web) and I guess, professional tools that generate Office-documents out of Oracle-DB and distribute them do it like this.