mavoe
April 1, 2025, 6:56pm
1
Describe the problem/error/question
Hello community,
I am trying to implement a workflow based on a “file creation event” in onedrive. I am using OneDrive For business, so Sharepoint behind the scenes.
I would like to monitor a specific folder.
When I try to configure this folder with the URL, I get an error because a different URL is expected (abc.live.com instead of abc.sharepoint.com ).
If I specify this folder with the ID, it unfortunately does not catch a File Created Event.
I get the ID via the folder search operation.
Without specifying a folder, I get results.
What is the error message (if any)?
I don`t get any error message (except when trying to configure the folder URL as mentioned above).
Information on your n8n setup
n8n version:
1.84.3
Database (default: SQLite):
default
n8n EXECUTIONS_PROCESS setting (default: own, main):
default
Running n8n via (Docker, npm, n8n cloud, desktop app):
docker
Operating system:
linux
Thank you for your help.
BR
It’s hard to say for sure without seeing your workflow code, but try this:
Since the trigger works without a folder specified:
Configure the Microsoft OneDrive Trigger node without a folder (monitoring the root of your OneDrive for Business).
Add a subsequent “Filter” or “If” node in your workflow to check the file’s parent folder ID or path against your target folder’s ID. For example:
Use the output from the trigger (e.g., parentReference.id or parentReference.path) and compare it to your desired folder ID.
Only proceed with the workflow if the file is in the correct folder.
mavoe
April 2, 2025, 7:17pm
3
Hello,
unfortunately your proposed approach does not work, because somehow I only get 199 results from the onedrive trigger not containing the file I am secifically looking for.
I understand, that it could be a workaround, but according to my understanding it must also work with the trigger itself and a folder ID.
Is there a bug within the trigger node?
I am trying to get my create file trigger working. How do you find the folder ID or URL? I only have the browser. Here is the shared URL I’m using to test this node.
https://acceledgy-my.sharepoint.com/:f:/g/personal/deep_trikannad_acceledgy_net/EnSRyb_VuZxOnNu6fljQQC4Bg1I3ZRL8GuvKy2l9bYcbAg?e=6eaHB3
the ID i get is: %2Fpersonal%2Fdeep_trikannad_acceledgy_net%2FDocuments%2Fn8n-test
but that seems to give me an error in n8n. Also, the url passed above also gives an error.
mavoe
April 3, 2025, 4:11pm
5
I get the folder ID via “search a folder” action. There you can search with the folder name and then you receive the ID.
But anywhay… that does not work as the trigger node does not work neither with the folder id nor with the url.
Thx for getting back.
are you saying that the trigger capability for onedrive on n8n doesnt work? It only works on google?
Do you know how to get events for file updates on onedrive?
Thx
mavoe
April 4, 2025, 5:01am
7
At least I haven’t been able to get it to work so far. That is why I finally opened this post.
1 Like
Stekum
April 14, 2025, 2:41pm
8
I can confirm that the whole OneDrive integration seems is very buggy - i cant get it to fire a trigger either