Node-red-contrib-m365 configuration

I wanted to use OneDrive node to be able to upload/download files to Onedrive. But I was unable to find some sample flow on how to do it. I have tried to make a sample flow like this:

image

But I am still getting some kind of error "olconnect.error". I think, there is some problem with Oauth, but I do not know where to start with some debugging... Do you have any idea ? Thanks.

Do you need to do it this way? Could you use the OS native OneDrive filing system instead?

You mean to save the file to a location on PC, where OneDrive app will synchronize the file?
I am running Node Red on Linux PC, where I do not have such folder or OneDrive app... But I did not search if I can make something like that on Linux.

Yup. There are definitely drivers available.

Much easier if you can do it that way.

Thanks, I will look at it and try... But it would be also nice to learn how to work with the Oauth and M365 node in node red.

I'm afraid that I've never bothered to try and work that out. M365, being primarily aimed at enterprises and governments (between them where the big money for Microsoft is :slight_smile: ), can get quite complex because they can't afford security foul-up's.

Hi, this node is created by the company I work for.

To use it, you need to set up a config node, where you add the details of the Azure app that should be created for this purpose. As the documentation of the config node says:

To use this node you will need to register an app via the Azure/Entra ID portal. Then you will be able to obtain the Tenant and Client ID from the app dashboard.

I'd be interested to know how you set this up to get this error message. That way we could improve the error message.

2 Likes