Can SSRS append new data to an existing file (Excel, google doc etc) - reporting-services

Question is basically as the title states. I have a report that exports a day's worth of data to excel each morning. Is it possible within the SSRS subscription environment to have that data append to the same excel file (or google doc etc) rather than create a new file each time (and without having to run more than a day's data at a time).

Related

Daily Google Sheets trigger csv import from CRM

I have a Google Sheet that I'm wanting to overwrite data on every day with a HTML link download that will also require a login and password to access. Is there a way to use Google Sheets scripts to accomplish this? For Example. I'd like to import and overwrite starting with cell A1 with the first csv file, BA2 with the 2nd csv file, and DA2 with the third csv file.
For the last year I've had to manually download, and manually import these files each day for our reports to show up correctly.

Using FileMaker Pro to read/write to csv automatically

I have a CSV file which is designed to sit in the middle of various systems that utilise it. For example, I have a python script that runs and updates data in the CSV periodically.
I'm looking to have a UI that uses the CSV data and allows the user to filter it and perform various other actions.
However I've not been able to find a clear answer online regarding the refreshing of imported CSV data File. I can see how you import the data, but can you have it so it refreshes (so it reflects any changes made to the CSV) every x amount of seconds/minutes or even when the file itself is modified?
And vice-versa, can the user edit something in the table on FileMaker and have the CSV also be updated to reflect that (either upon changing something or when a button is clicked)?
Thanks!
You have several options.
Run the import/export as a scheduled script every x minutes on FileMaker Server.
Install an ontimer script on Filemaker Pro that runs your import/export script every x minutes as long as the window is open.
Trigger the import/export script from an external source, for instance Applescript or Active x.

Is there a script function that would pull up my network files and let me pick one to import?

I'm setting up a file comparison in google sheets. One file type is an excel sheet sent to my email on the first of every month. The other file type is a .txt file autosaved onto my computer in a shared network from an app I have, and that one is saved every hour on the hour. I need the user to be able to click the button connected to the script, and give them the file explorer so they can pick the proper file. Any file they would pick is in the same folder, they just have to pick the one with the timestamp they want.
The excel sheet is already auto-uploaded into the drive and auto-uploaded into the file comparison. I can't figure out how to give the user the option to select the second file they want to upload (the one coming from my shared network) with the push of a button, other than having them manually click "file, import, import from my computer..."
Is there a way to do this?

Scripts: Need to export/copy data from Google Sheet to another (acting as a form submission)

For a quick background, I'm using a single google sheet as a daily "dashboard" for my managers' shift reports. I'm using a few time driven scripts to export each report to pdf and email it to our ops team every night, and another script to clear the data so the report is ready for the next day.
This works well for day-to-day review, but we lack the capability to store daily stats we want to reference months-years down the road. We used Google Forms for this in the past, but I'm determined that we can consolidate both processes.
As imaged, the circled fields on the "dashboard" sheet are the data points I want to export to an archive sheet. Ideally, the data would export to a spreadsheet adding 1 row of MB data followed by CAD data in the next row.
I've played around with a few scripts playing with 'HTML Google Form Submissions', but I couldn't find a solution which could pull in data from another sheet. To make this work, I would need to be able to reference specific cells/ranges as entries to specific form questions.
I've also tried some scripts which copied data to the next empty row of another sheet similar to Google Forms, but it became super buggy and difficult to fine tune.
This sounds like what you are asking for.
function backup(){
var data = SpreadsheetApp.getActiveSheet().getRange("a7:g8").getValues();
var backupss = SpreadsheetApp.openByUrl("backupsheeturl");
var backupsheet = backupss.getSheetByName("backupsheet");
backupsheet.appendRow(data[0]).appendRow(data[1]);
}
Reference:
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app#openById(String)
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app#openByUrl(String)

How can I automatically import & replace data in a Google Sheet from a CSV that has been uploaded to our Google Drive?

We have some marketing software that pulls reports on email marketing and uploads a CSV automatically every week or month into our Google Drive. Our reporting software can't automatically pull data from a CSV, so I have to use Google Sheets.
How can I make it so that when a new CSV is uploaded onto the Drive (replacing the old CSV in the process), my Google Sheet will pull the new data and replace it over the old data?
The question isn't clear, meaning there are many "variables" to your question, and thus a variety of solutions which you can implement to solve the specific permutation you're looking for. But I'll try to answer your question with some considerations and suggestions:
"[A] new CSV is uploaded onto the Drive (replacing the old CSV in the process)." Are you sure this is happening? Every time you upload, say a hello.csv to Drive, it adds a new hello.csv file one rather than replacing an existing one with the same name. You would have to have an application that knows or can look up the original CSV Drive file ID and explicitly replace the file contents or upload a new version of that file.
If you do replace the original file via one of those two techniques, track the changes to that file via the Drive API, meaning your app can take action as soon as that file has been updated. See this page in the docs to learn how to detect changes.
The comment in the OP makes a suggestion from another SO Q&A, however that solution does not address the OP's question. Instead, it imports a CSV file to Google Drive as a Google Sheets (file) -- the CSV file never makes it to Drive as per the OP. Also, the OP is requesting something more than a mere import.
However, with that said, the OP's final request was: "[My] Google Sheet will pull the new data and replace it over the old data." There are 2 ways to do this:
a) The simplest/easiest way is to just overwrite all existing data in the Sheet with what's in the CSV file... old data, new data, it doesn't matter. Once the new CSV file has been imported and new Sheets file created, you can delete both the old CSV and corresponding Sheet. The (new) files can have the same names as their predecessors no problem. For that, build a solution similar to the SO Q&A mentioned above -- the CSV file will already be in Drive, so just create a new Sheets file and use the content from the CSV file on Drive (rather than from the local filesystem).
b) If you only want the deltas, you need to keep a copy of the old CSV and "diff" it with the new CSV, and only overwrite the rows that have changed, a much more complex solution, and one in which you'll have to use the Google Sheets API (because it's for spreadsheet operations while the Drive API is used for file operations).