Questions tagged [ms-graph-client]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Expected 3 arguments, but got 2

I'm working on a WebPart, which has a form and a button. On button click write items in a SharePoint List. So, the button click is my last step, but the buton does not work. I get everytime: ...
LeberkäseWhatsappgruppe's user avatar
0 votes
1 answer
994 views

Graph API call from SPFX tab with MS Graph Client

Can we call Graph API directly through MS Graph Client for SPFX tab in team Desktop?? Here is the sample of git which call Graph API directly in teams tab without any authentication flow or access ...
abhishek23 Negi's user avatar
0 votes
1 answer
2k views

Post Team Chat Messages using Graph API

Not able to post message in teams chat using Graph API in SPFX using Token but able to get chats by using token Getting error in console Requested API is not supported in application-only context ...
abhishek23 Negi's user avatar
0 votes
1 answer
306 views

Graph API unauthorized error for specific user only

All the permission are given , this API is working fine for other users Below is the screenshot of Graph explorer calling this API and getting unauthorized error This API was working fine but after ...
abhishek23 Negi's user avatar
0 votes
0 answers
257 views

A provided field name ("_LikeCount"and "_CommentCount") is not recognized Graph Explorer

Hi i am trying to sort the result of my query by _LikeCount or _CommentCount of the Site Pages however i always got "A Provided field is not recognize" , any help is appreciated why it ...
BizApps's user avatar
  • 723
0 votes
1 answer
208 views

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

I want to create a spfx webpart to create a tasks in the teams channel IS there any API for creating tasks in teams channel Below is the image of my channel Task tab I am new to Graph API Thanks in ...
abhishek23 Negi's user avatar
1 vote
1 answer
1k views

Adding custom column to a SharePoint library using Graph API

I want to be able to add a custom column to a SharePoint library using Graph API. I was able to create the library using article https://docs.microsoft.com/en-us/graph/api/list-create?view=graph-rest-...
Abhishek's user avatar
2 votes
1 answer
325 views

SharePoint SPFx Graph API calls not working on Desktop Teams tab

SharePoint SPFx Graph API calls not working on the Desktop Teams tab, It displays nothing on the Teams Tab. The same Teams Tab is working fine on the web browser. In the Teams tab, I just want to make ...
Krunal Patel's user avatar
0 votes
1 answer
165 views

Fetching the Outlook Task's Data into Webpart using Graph Api call

I am using render function to make Graph Api call I have created a function _outlookTask to fetch the outlook task's data How to make Graph Api call with Selecting the HTTP method as GET and then, ...
abhishek23 Negi's user avatar
0 votes
1 answer
2k views

Failed to execute MS Graph backend request GetGroupInternalApiRequest

In my project, there is a requirement to create Site Collection with Office 365 group, so I have used following method CreateUnifiedGroup of OfficeDevPnP.Core.Framework.Graph namespace. Here is the ...
Pradip R.'s user avatar
  • 2,299
1 vote
1 answer
984 views

You do not have permission to perform this action or access this resource PNPJS

We have an portal where an azure AD user will login and will be able to see the data from list on sharepoint. Trying to achieve this using PNPJS and Angular MSAL For the development phase,executed all ...
LearningPal's user avatar
3 votes
2 answers
1k views

Making MsGraphClient request synchronous (await)

Im trying to use a get call through the MsGraphClient in a synchronous manner, but it doesn't seem to be working for me: public getDirectReports = async (manager): Promise<any[]> => { ...
Nigel Witherdin's user avatar
0 votes
2 answers
1k views

SPFX MSGraphClient - Cannot read property 'id' of undefined

I am getting this issue when calling Shared and Recent OneDrive files using MS Graph Client on my modern webpart. Uncaught (in promise) TypeError: Cannot read property 'id' of undefined I get the ...
AAT's user avatar
  • 1
0 votes
2 answers
1k views

Problems with MSGraph POST in SPFx React

I am fairly new to MSGraph and I have a problem with the POST request. I am currently building an app in SharePoint Framework with React which should send a message to the typed email with subject and ...
kelank's user avatar
  • 97
0 votes
2 answers
2k views

SPFX - calling async function - Missing properties

I'm trying to create a modern webpart that connects to MSGraphClient using the UI Fabric, to create quick access to files. I'm getting the follow error calling an async function with _allItems (...
AAT's user avatar
  • 1
0 votes
1 answer
1k views

SPFX Webpart - BaseWebPart.properties Error

I'm new to SPFX / React Development, So I thought I'd start with a simple project! I want to add a Resource Quick Access webpart on my Modern Sharepoint Page where users can quickly access SharePoint/...
AAT's user avatar
  • 1
0 votes
1 answer
716 views

Get User Photo, Name &Title of an office 365 group using SPfx

I am trying get the user details i.e. UserName, Title and Profile picture of users that belong to a office 365 distribution group. I tried this code sample, but I get an undefined error: ...
user1339913's user avatar