Skip to main content
4 votes
Accepted

Unable to resolve "@pnp/graph"' has no exported member named 'graph' in SPFX solution

The use of graph was changed to graphfi in PnPjs v3. https://pnp.github.io/pnpjs/transition-guide/#global-vs-instance-architecture Here's a simple example of the use of graphfi from the PnPjs ...
Rob Windsor's user avatar
  • 12.8k
4 votes
Accepted

Expertise from Delve via Graph API

I had the exact same question, hunted around and could not find the answer. It's not listed on: https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 But through some Trial ...
PSaul's user avatar
  • 156
4 votes

How to get today task from multiple team subsite's task list?

A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax You would need to first get all subsites using this rest endpoint:/...
Morten K's user avatar
  • 1,230
4 votes
Accepted

sharepoint graph api filtering based on a list column value

You can try filtering list items by using similar query as given below: For List on root site: https://graph.microsoft.com/beta/sites/mytenant.sharepoint.com/lists/MyListName/items?expand=fields(...
Ganesh Sanap - MVP's user avatar
3 votes

Accessing a SharePoint list without access using Graph API in SPFx

"Delegated Permissions" mans the app will assume the security context of the logged in user. Application Permissions are not used by SharePoint Framework. Users should never be shown data ...
Derek Gusoff's user avatar
  • 8,062
2 votes
Accepted

How to get Site Owner Via Graph

Yes, I tried this before and by default Site resource does not provide owner property. As of now, by using /sites/{site-id} graph returns only below given properties: @odata.context createdDateTime ...
Ganesh Sanap - MVP's user avatar
2 votes

How to get today task from multiple team subsite's task list?

Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
Kasper Bo Larsen's user avatar
2 votes
Accepted

SharePoint Online sitegroups REST query in graph API

Looking at the documentation for the Sites endpoint (both v1.0 and beta), it does not appear that you can get SharePoint Permission Groups or their members from the Graph. https://docs.microsoft.com/...
Rob Windsor's user avatar
  • 12.8k
2 votes

Fetching Specific User's Profile Photo via Graph API in SPFX

Change code as below, should work - this.context.msGraphClientFactory .getClient() .then(async (graphclient: MSGraphClient) => { let photo = await graphclient .api('/users/'+ mail +...
user2265924's user avatar
2 votes
Accepted

Microsoft Graph API to get all the all the folders from SharePoint Document library

You could try the below endpoint to get all folders in the SharePoint Document library: https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$expand=fields&$filter=fields/...
Michael Han's user avatar
  • 5,231
2 votes

Fetching all planner Task through Graph API

Per my test, I got the same result as yours. The property DisplayName shows null vaule for user: I would suggest you sumbmit feeback for this bug:https://developer.microsoft.com/en-us/graph/support
Michael Han's user avatar
  • 5,231
2 votes
Accepted

Adding custom column to a SharePoint library using Graph API

Try with POST method like: POST /sites/{site-id}/lists/{list-id}/columns Example request: POST https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/columns Content-Type: application/json ...
Ganesh Sanap - MVP's user avatar
2 votes

Recent Documents" Web Parts on Classic Page

You can use Microsoft graph "recent files" endpoint which lists a set of items that have been recently used by the signed in user. You can find more information in this documentation: List ...
Ganesh Sanap - MVP's user avatar
1 vote

How can I determine the site prefix of a SharePoint site via an API?

It was simpler than I initially thought once I realized that I can get the siteUrl from any given drive item. I'm using the graph API to get the SharepointIds with ?$select=sharepointids followed by ...
Maksim Grinman's user avatar
1 vote

Cannot change the "Created By" column in a SharePoint list item using Graph API

I don't work with python but changing the created by value is usually not a problem. Granted, one would be better of not doing it, but sometimes we need to do what we need to do. Not sure if you've ...
Tiago Duarte's user avatar
  • 5,497
1 vote

Check If Site URL is SharePoint Site or Team Channel Site

If you want to detect if a SharePoint site is part of a Team channel of not, you can use the Reports endpoint of Graph API: https://graph.microsoft.com/v1.0/reports/getSharePointSiteUsageDetail(period=...
jleture's user avatar
  • 1,530
1 vote

Does SharePoint actions such as "GetItem", "GetItems", "Grant access to an Item or folder" , etc uses SharePoint api or Graph API

Actions in Power Automate like GetItem, GetItems, Grant access to an Item or folder, etc. use SharePoint API. It will run using account using which you created your Power Automate. See more details on ...
Kalpesh Vaghela's user avatar
1 vote
Accepted

Is it possible to get the Members group of a specific site in SharePoint using the Graph API and then add or remove a member?

You can use Microsoft Graph to manage Microsoft 365 group members. But you cannot use Microsoft Graph to manage SharePoint group members. SharePoint Online sites may be connected to a Microsoft 365 ...
Rob Windsor's user avatar
  • 12.8k
1 vote
Accepted

Capture the users clicks inside our SharePoint modern home page (how click on quick link modern news, etc..)

You can try adding SPFX in that page. As an example I have called a function and capturing the quick links. Please note that I am using Quiklinks of compact layout option. In SPFX , call the custom ...
Saira's user avatar
  • 626
1 vote

How to connect SharePoint online list to insert data from out side the SharePoint platform using

There are following ways to do so and you can use based on your external application support 1. SharePoint REST API Official Documentation - https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/...
Kalpesh Vaghela's user avatar
1 vote

Accessing a SharePoint list without access using Graph API in SPFx

SharePoint Framework always runs with current user's context so you will not able to access anything where current user don't have access. You need to create middle layer API which gets data from ...
Kalpesh Vaghela's user avatar
1 vote

Graph API call from SPFX tab with MS Graph Client

In SPFx web part you will require to request permissions as below. "webApiPermissionRequests": [ { "resource": "Microsoft Graph", "scope":...
Rajat Sahani's user avatar
1 vote

Post Team Chat Messages using Graph API

I built a SPFx web part and I was able to both read and post Teams chat messages when I requested ChannelMessage.Read.All and ChannelMessage.Send. Here are links to the documentation for the Microsoft ...
Rob Windsor's user avatar
  • 12.8k
1 vote
Accepted

Programmatically retrieving Document ID

After uploading the file using graph api you will get drive item id. Use drive item id to retrieve list item (If resource type is SharePoint) Upload file to SharePoint library using below api PUT /...
Rajat Sahani's user avatar
1 vote
Accepted

IS there any way to create tasks in particular Channel of teams using Microsoft Graph API

You can use below endpoint to create new task inside any planner. https://graph.microsoft.com/v1.0/planner/tasks Request body { "planId": "xqQg5FS2LkCp935s-FIFm2QAFkHM", &...
Siddharth Vaghasia's user avatar
1 vote
Accepted

Upload File with Required Property to SharePoint Online using Graph API (C#)

After you uploading the file, you could use Update listItem method to set the column value, like this: var fieldValueSet = new FieldValueSet { AdditionalData = new Dictionary<string, object>(...
Michael Han's user avatar
  • 5,231
1 vote
Accepted

how to fetch all Planner Task in SPFX through Graph API

I suggest you use Microsoft Graph Toolkit in SPFx, it has an OOB componment mgt-tasks that could display the signed-in user's Microsoft Planner tasks. https://docs.microsoft.com/en-us/graph/toolkit/...
Baker_Kong's user avatar
  • 1,199
1 vote

¨PnPJS Graph : how to list all members of a Group

You need to expand the members, otherwise you'll get undefined. const group = await graph.groups.getById("GUID").expand("members")();
Sandro's user avatar
  • 181
1 vote
Accepted

How to solve Application is not registered in our store. error while using GRAPH API for making a call?

I solved this issue by generating an access token without user as mentioned Get access without a user and passed it in the authorization.
Dhruvil Prajapati's user avatar
1 vote
Accepted

SPFx Extension: wait for fetching data before rendering header

You are resolving the promises without waiting the completation of the asyncronous calls inside methods and without returning anything. Can you try this code? private _getUserInformation() : ...
RiccardoGDev's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible