-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work with Office365 SharePoint Document Library #155
Comments
Hi @PaddyCube, the samples for Azure Blob can be found here. See the sdk for O365 service class to see some details about the SharePoint integration v1. Regarding Microsoft Teams and SharePoint online integration I would recommend Microsoft Graph. That can be found here too. Design your Graph query using the explorer on the public sandbox or signin to your environment for a quicker implementation. @vikasbansal2022 any samples that could be shared from our end? |
Basically I need to upload to SharePoint site collection hosted in O365. Can i use this SDK for doing this? We created a ClientID in Admin center, added this ID to an AAD group and granted permissions to this group in our SharePoint Site Collection. I use this small program to collect all files of a given document library. I'm able to get an AAD token but it always returns 401 when it tries to fetch data from SharePoint. We checked permissions of Client ID a couple of times and they're sufficient. However, I'm confused about ClientID and SharePoint, V1, V2, ACL and this stuff. So can we use this SDK together with O365 only when we use outdated ACL instead of AAD accounts? Do we need to switch to Graph these days (whatever this is)?
|
I recommend to reduce the problem space in your integration test by using a plain REST client first. Once you have a working request put the ABAP SDK to work for it. The simplest check is the Graph Explorer. See the endpoints here |
Thanks for highlightning Graph. As SAP Developer, I'm not that familiar with all these MS products. I had lots of issue to get it running with this SDK. For example, I had to use https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token, which seems not to be supported by this SDK. I tried with V1.0 tokens but they're not valid in Graph because the resource To fix this, I had to change method Next, I enriched the class If you're interrested in my changes, I'll fork this repo and create a PR |
Hey @PaddyCube, a PR would be fantastic! KR |
Microsoft Graph is its own product covering M365 (not only O365). I lean towards the config screen (2nd screenshot you shared). @vikasbansal2022 what do you prefer? |
Hi @PaddyCube , Key/AAD Column is used to store Secret/Key. Once you save that it gets encrypted and stored in table ZADF_CON_INDX. Since Client ID is no secret, you can use usual SAP process to store in TVARV via SM30 against some variable and use that in your program code. Hope it helps. Regards, |
Thanks for your input. Patrick |
Hi there,
your repo lacks in documentation as well as in examples.
Can we use this to upload a BLOB (i.E. Excel file or PDF) to a SharePoint document library in Office365?
Or into a document library of a MS Teams Team (which seems to be the same imo)?
Are there any examples available?
The text was updated successfully, but these errors were encountered: