Questions tagged [ms-graph-client]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

MS Graph Client not working as a SPFX tab in Desktop Teams

Is there any way as I am able to use Graph API in SPFX webpart which is working fine in sharepoint page, Teams tab in Microsoft teams Browser verson Failed Ms Graph Client to call Graph API as a SPFX ...
user avatar
0 votes
1 answer
32 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
0 votes
0 answers
12 views

How do I use MS Graph API to get the SiteCollection Administrators?

I am currently able to use powershell to fetch sitecollection administrators as such: $password = (ConvertTo-SecureString -AsPlainText 'MyPass' -Force) Connect-PnPOnline -CertificatePath "MyCert....
user avatar
  • 101
0 votes
0 answers
54 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 ...
user avatar
  • 709
0 votes
1 answer
95 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 ...
user avatar
0 votes
0 answers
18 views

How to mention a user in Outlook email body using SPFx PnPjs ,so that it shows what exactly should show if someone mention in Outlook email

How to mention a user in Outlook email body ? I am using SPFx so in PnPJs or MSGraph any solution will be fine. Just want to use exactly the same functionality that Outlook offers when we mention ...
user avatar
1 vote
1 answer
439 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-...
user avatar
2 votes
1 answer
158 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 ...
user avatar
0 votes
1 answer
79 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, ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 2,003
1 vote
1 answer
531 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 ...
user avatar
3 votes
2 answers
720 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[]> => { ...
user avatar
0 votes
2 answers
853 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 ...
user avatar
  • 1
0 votes
2 answers
630 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 ...
user avatar
  • 47
0 votes
2 answers
1k 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 (...
user avatar
  • 1
0 votes
1 answer
822 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/...
user avatar
  • 1
0 votes
1 answer
487 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: ...
user avatar