NetSuite Integration with Microsoft Graph API

Joseph Wylie 25 Reputation points
2023-08-28T14:12:57.8+00:00

I am working on an application that will allow me to retrieve data from my OneDrive account (data from files) within NetSuite. This is going to be an application that run exclusively on the backend and has no UI.
I am having a difficult time figuring out a way to grant NetSuite access to my OneDrive without running into consent/authentication issues.

Do anyone have any ideas how I can manage this with no UI?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,036 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 42,026 Reputation points
    2023-08-29T10:03:43.27+00:00

    Hi @Joseph Wylie

    You need to register your app to Azure AD, next grant Files.ReadWrite.All application permission for this app and grant admin consent.

    User's image

    Since your working scenario has no UI view, then you need to use the unattended client credentials flow to obtain an access token.

    After that, you will be able to use this token to get files hosted in OneDrive.

    https://graph.microsoft.com/v1.0/drives/{drive id}/root/children
    

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.