[Microsoft Login Connector] Sharepoint get items

Forge Component
(9)
Published on 3 Jul (13 days ago) by Paul Davies
9 votes
Published on 3 Jul (13 days ago) by Paul Davies

Hi all,

I was able to use the component successfully but I'm having trouble getting items from Sharepoint.

I know the problem is not related to this component but I did not know where to find help for my problem.

So I am using this API's: https://docs.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0

  • Get Sites - OK
  • Get Lists - OK
  • Get Items - NOT OK

In summary, I can get the list of sites and lists, but the api for get items not return any item.

I think it will be a permissions issue but so far I have not been able to resolve.

Can anyone help?

Thanks,

Pedro


Pedro Coelho wrote:

Hi all,

I was able to use the component successfully but I'm having trouble getting items from Sharepoint.

I know the problem is not related to this component but I did not know where to find help for my problem.

So I am using this API's: https://docs.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0

  • Get Sites - OK
  • Get Lists - OK
  • Get Items - NOT OK

In summary, I can get the list of sites and lists, but the api for get items not return any item.

I think it will be a permissions issue but so far I have not been able to resolve.

Can anyone help?

Thanks,

Pedro


Hello Pedro,


Do you have any error on the rest call? 

How are you getting the items ? 

You can use the sharepoint API not associated to Microsoft graph.  To get the Items you would use something like so :

https://<yourdomain>.sharepoint.com/sites/<yoursite>/_api/web/lists('<your list id >')/items(<ItemId>)

Being the list id something like '3222dc8a-9999-7777-bf0b-0333c632b522'


Best Regards,

Miguel Amado