this is a general question about Power Automate and OneDrive that I've seen no solution to.
I'm trying to create a flow "Copy files from a folder in OneDrive (Business) to an FTP server". The trigger is "When a filed is created" in a OneDrive directory. When I attempt to navigate to the folder I just see ROOT, then "No Items".
I also can't figure out how to obtain the unique identifier of the folder.
I was able to get the ID of my folders with this short Instant flow.
It'll output a JSON response with the ID, Name, Path, etc for all your folders in the Root of OneDrive. There is also a "List files in folder" block that you can use to get subfolders of folders.
I was able to copy the ID string from the JSON response and paste it into the "When a file is create" OneDrive trigger and have it go off successfully.
The issue was I was attempting to do this using OneDrive(Business) when I should have used Sharepoint based on my organization's license
Related
Need to delete the files i have stored temp in share point subfolders and I’m new to power automate please someone can help
flies created in SharePoint
and if this below flow can delete the file?
To delete a file from a subfolder in SharePoint using Power Automate, you will need to use the "Delete File" action in a flow. Here's how to do it:
Sign in to Power Automate and create a new flow.
Select the trigger for your flow. For example, you may want to use the "When a file is created or modified" trigger to delete a file as soon as it is created in a subfolder.
In the "Action" step, search for and select the "Delete File" action.
In the "Site Address" field, enter the URL of the SharePoint site where the file is located.
In the "Folder Path" field, enter the path to the subfolder where the file is located.
In the "File Name" field, enter the name of the file you want to delete.
Save and run your flow.
Keep in mind that this action will permanently delete the file, so make sure you are certain that you want to delete it before running the flow.
Now I want to download the dataset on the website(http://pubchemqc.riken.jp/), it's in google drive and filesize is 2TB. the website recommend using rclone to download the file but not said how to use.
As the picture shows
This was asked a while back already but I'd like to keep it recorded here as it seems hard to find.
Unfortunately I don't know if there's a way to automate this process but it's still easy.
What you can do is create a new remote with the link's root_folder_id.
The Root Folder ID is present in the url e.g:
in the example link
https://drive.google.com/drive/folders/a1b2c3deFgHi4JKlm56nOpqrStuv7w8xy9
the root_folder_id is the string after the slash /folders/ so in this case it would be "a1b2c3deFgHi4JKlm56nOpqrStuv7w8xy9". If the Google Drive shared link you got is a folder all you have to do is copy that id and use it in the rclone's new remote setup. Now if the shared link points directly to a file, like the one in the OP, there's no folder to download it from, so we gotta create our own! The whole process would look like:
get the folder_id from Google Drive's link. If it is a link to a direct file then first we have to create a new folder anywhere inside our own Google Drive, it's name doesn't matter as we will point directly to it using the ID. After creating this new folder, open it and note the url, it should look something like
https://drive.google.com/drive/u/1/folders/Fdrcv3nQvxQqXUGEEyvacwUxdYXpV33Ct
just copy everything after /folders/ and save it for later.
now go back to the link of the direct file. Add a shortcut for that file to inside your recently created folder, so say the folder was named dl-with-rclone, click the "Add shortcut to Drive" icon and navigate to the "dl-with-rclone" folder to add the shortcut there.
heading to rclone, do:
rclone config <to open settings>
On the prompt e/n/d/r/c/s/q> hit n (the key relative to creating a new remote)
On name> give it a name like sharedWithMe or anything else for personal reference later
On the prompt Storage>, the possible remotes to connect to, write down drive or the number relative to it (currently 15)
if you set up your own client_id and client_secret you put them next
On the scope> prompt option 2 "Read-only" is enough
now this is the important one:
on the root_folder_id> prompt input the ID of the folder of the shared link or the folder you created and pointed the file shortcut to, e.g. Fdrcv3nQvxQqXUGEEyvacwUxdYXpV33Ct
Now you can pretty much hit enter for everything, once you reach Use auto config? you will be redirected for a browser to login. Make sure the logged in account is the same that you created the folder for the shortcut. If the shared link is for a folder already your logged in account doesn't matter.
After finishing your remote setup you can exit rclone config
The command you would need would be something like rclone copy sharedWithMe: destination/folder
This being rclone you would surely be able to copy from one remote to another, that's up to the user.
In summary: I did test this method on your link, creating a folder in my Drive, pointing the file shortcut to it and using the root_folder_id to setup the rclone remote and it did begin to download:
rclone test download screenshot
I am trying to add shared folder to MS Outlook 2010. When I do this with
file=>open=>open use's folder there is no issue. The folder appears but it is very uncomfortable to use mailbox like that. The main issue is that when I added additional mailbox I cannot access it. I get message
Cannot display the folder. Microsoft Outlook cannot access the specified folder location. The operation failed. An object cannot be found.
I think that I have not permission to the root folder of mailbox and this is why I cannot get to the folder(which is actually mailbox). unfortunately I cannot check if I have the permission.
Is there any way to add the folder permanently?
You will need to be an owner with Full Mailbox access to add that Mailbox to an existing or new Outlook profile (this is the most "permanent" way). Otherwise the owner of that Mailbox will need to use the Delegate options to share one or more of their default Outlook folders with you (sharing other non-default folders aren't possible). Once you access a shared folder it should be added to the Navigation module for that folder type so you can access it quickly later.
If the owner doesn't share as Full Mailbox or via Delegates, then you don't have access to any folders and cannot view them.
I am going to prepare a (windows) server side service which allows users to download their requested files as a Zipped folder. In Microsoft windows(7) If you select all files and folders and send them to a zip folder, a random name will be assigned to the generated zip file which is the name of one files or folders in that collection.
Is there any reason that windows doesn't set a new name say new-zip-file? and how can I predict what the name would be?
The name of the zip is in fact not random,
it relies in the file you choose to click at last.
you can select multiple files but you make right click on one only file in order to zip the group of files, and thats the file name windows chooose.
A java application is using the %PUBLIC% environment variable to get the path to "c:\users\public". It then appends that with "public documents" and tries to read a file from the folder and fails (it previously read and wrote the file successfully). The application shows no data and when it tries to write to the "c:\users\public\public documents" folder a duplicate "c:\users\public\public documents" folder is created with the new version of the content. You can still get to the original content using windows explorer and see it all there, but now there are two "public documents" folders.
Previously it was reading and writing to the public documents folder without any problem. This is happening with every account on the system, but it is still working just fine on every other PC the software is installed on.
What Windows Explorer doesn't make evident is that the real folder is not actually called "Public Documents", but is actually called "Documents". The "Public Documents" is simply a display name, but as far as NTFS is concerned you can have both a "Documents" and "Public Documents" folder with no ill effects.
Use %PUBLIC%\Documents to refer to the actual folder you're looking for.