Hello everyone, I’m learning about RPA, my automation downloads a file from Google, I would like to know how I can access this file on my machine for example, or how to send it to a database.
Hello @kaio_valadao,
It depends on the file type.
For example, if it is an Excel file:
-
Read the sheet of excel as Data table.
-
And then loop through the data table and run update SQL query on the specific database.
If it is an PDF\Text\ Word file:
-
Get the Text from the File - with appropriate activity (you will have to import packages to see them in the activities panel)
-
Parse the text- apply regex or split by any delimiter (, or tab or space) and build a data table and add rows to it.
-
And then loop through the data table and run update SQL query on the specific database.
Hope it helps
So I actually need to get the download, it’s downloaded in chromium, but after that I don’t have access, how do I access this file on my computer? It’s an Excel spreadsheet
Hey @kaio_valadao
I see you’re currently downloading the file using browser interaction and the “Wait for Download” activity. A more reliable approach would be to use the Integration Service with the Google Drive connector.
You can use similar flow:
If you downloading file, the path you can get this way:
and use it in read range activity and then in for each loop to process the data row by row, e.g. to insert values into a database.
wait for download will have an output variable which is the file downloaded
variable.localpath will give the path to the file
if you want to use it in further activities the variable can be directly used
also if it is in drive then using integration service as @pikorpa said would be appropriate
cheers



