web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Open in OneDrive occurs in Error

(0) ShareShare
ReportReport
Posted on by 105

Hi Guys,

one of my customers faces the problem that when he trys to open an attachement in onedrive, for e.g. purchase order, following error occurs:

The client ID or client key has not been initialized.

Tried to dig my way through the codeunits MS is using, but didnt really find a clue how to solve.

He is able to open his onedrive folder from the personal settings, that is the reason i am a bit confused. Any ideas?!

Regards,

Marco

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at

    Hi

    Sorry for basic question, have your client followed guideline like this for original setup? Thanks

    https://yzhums.com/17888/

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Have you been through the required setup as documented by Microsoft ?

    docs.microsoft.com/.../admin-onedrive-integration

  • Lubenheimer Profile Picture
    105 on at

    Good Morning,

    no - i dont think any setup was done. Normally, afaik, there is no setup needed - at least i never heard of it.
    Your link mainly refers to on premise, my customer is using cloud.

    Still the weird fact is, that opening onedrive from his personal settings is possible, but not using "open in onedrive" from any document.

    Shouldnt a missing setup also decline opening onedrive out of your personal settings?

    Regards,

    Marco

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    There are a few requirements for this:

    Each user must have a license for Business Central and OneDrive as part of a Microsoft 365 plan.

    OneDrive must be set up for each user.

    Have these requirements been met? When you talk about personal settings, are they actually logging on to to OneDrive with their Office 365 account?

    Thanks.

  • Lubenheimer Profile Picture
    105 on at

    Hi Marco,

    by Personal settings i mean the personal settings in business central where you can change language, working date etc.... there is a link to you personal onedrive folder. using this works - also working in onedrive. so license is there.

    Regards,

    Marco

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, This is very strange, if he is able to open his onedrive folder from the personal settings, it means there is no problem with verification.

    Did you try to add Super permission to him?

    I have tried adding this button to other pages before, which requires a Codeunit to be executed. Is it possible that it is caused by not having permission to run this Codeunit?

    More Details:

    https://yzhums.com/19896/

    pastedimage1647306198716v1.png

    Hope this will help.

    Thanks.

    ZHU

  • Lubenheimer Profile Picture
    105 on at

    Hi ZHU,

    that is exactly what i am asking myself too - user is having super permissions so this cant be the problem. i already opened a ticket for ms support, i think it has something to do with the multitenant app registration, since this occurs on a embed version in one of our products.

    But tbh it drives me crazy that it doesnt work.

    Regards,

    Marco

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    In My Settings there is something called Cloud Storage. Has that been initialized. It should go to OneDrive / Sharepoint.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans