12

The SharePoint Client needs to be initialized with a SharePoint Authorization interface. This interface is used further down the line to determine if a token can be used from the local cache or if a new one should be requested. When a new token is requested, it might happen that the user is prompted to authenticate with SharePoint.


In some cases, it might not be desirable that an attempt to show an authentication dialog is performed in the middle of a process. For example, when integrating the SharePoint Client in the standard document attachment flow, you can run into runmodal errors because the system app tries to display an authentication dialog in the middle of a write transaction (insertion of the document attachment). Currently, there's no way to detect this.


Therefore, it would be handy if there was functionality available so we can check if the user needs to authenticate beforehand. This way, a nice error message can be thrown, and the user can be directed to authenticate.

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team