Questions tagged [microsoft-graph-toolkit]

Questions relating to the Microsoft Graph Toolkit

Find out more about the Microsoft Graph Toolkit in the documentation or at the GitHub project page.

112 questions
0
votes
1 answer

How to use Microsoft Graph Toolkit with SPFX 1.15.2

I created a new SPFX solution with yo. Then I followed this guide: Installed with npm install @microsoft/mgt-spfx and npm install @microsoft/mgt-react Then I changed the init method in the webpart.ts file to following code protected onInit():…
devil_inside
  • 412
  • 3
  • 9
0
votes
1 answer

MGT PeoplePicker selectionChanged event parameter type

I am creating a SPFx web part with React and I am using the Microsoft Graph Toolkit PeoplePicker. It offers a selectionChanged callback. This callback gets passed a parameter of type Event (defined in typescript/lib/lib.dom.d.ts) export type…
mario.b
  • 165
  • 1
  • 12
0
votes
0 answers

How to set the headers for a particular request with Graph Toolkit

Per this question: https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/1224 I'm trying to set the headers on my request, but it seems the interfaces have changed (e.g. there is no longer a initWithMiddleware method on Client. This is in…
Hilton Giesenow
  • 9,809
  • 2
  • 10
  • 24
0
votes
1 answer

How to initiate a logout with MSAL2Provider

I am using the React Login Microsoft-Graph-Toolkit component (see snippet Below) and MSAL2Provider to log users into my Active Directory application, which works well. However, I have a requirement to logout a user from a custom logout button. The…
tlockhart
  • 381
  • 2
  • 7
0
votes
2 answers

mgt-person in Angular - the parameter "user-id" not working with variables

Using the mgt-person component in Angular with the parameter "user-id" not working with variables.
Mauro
  • 1
0
votes
0 answers

Unexpected token u in JSON at position 0 at JSON.parse at graph.user.ts:198:19 mgt-people picker

I am using Mgt-people-picker and there is a very intermittent issue. There is a need to pre-populate users by passing the email address some can be users from same azure tenant and some can be any external email addresses. When passing array of…
0
votes
1 answer

Context for MGT SharePointProvider

I am trying to use Microsoft Graph Toolkit components in SharePoint but outside of the SharePoint Framework. I found how to load the components, and a sample to initiate the authentication: mgt.Providers.globalProvider = new…
0
votes
1 answer

Microsoft Graph Toolkit PeoplePicker onChange event not triggering in mobile

We are using PeoplePicker in the Teams Personal Tab, we are able to trigger onChange event in the Desktop and browser but not in the Teams Mobile App. We are rendering the PeoplePicker in a Modal component (All are Fluent UI react components).
0
votes
1 answer

Graphtoolkit mock provider error in react library

I am using the toolkit components to create a library using(create-react-library), and the main app which use library also has some toolkit components, when ever i link the library to the main app there is problem with the same : "error Failed to…
0
votes
1 answer

How to install dependencies of react-mgtEvents

I am new to SharePoint Framework. I would like to add the react-mgtEvents sample web part to my SharePoint Online site. I installed the node-js version from the below URL: https://nodejs.org/download/release/v10.24.1/ After that, I tried to execute…
SmithBZ
  • 125
  • 1
  • 9
0
votes
1 answer

Graph toolkit Mgt-react Get photo value

// Type '"image"' is not assignable to type 'ResponseType | undefined'.
0
votes
1 answer

× NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "mgt-mock-provider" has already been used with this registry

Graph toolkit × NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "mgt-mock-provider" has already been used with this registry using these version "@microsoft/mgt": "^2.3.0", "@microsoft/mgt-react": "^2.3.0", tried…
0
votes
0 answers

graph toolkit teams channel picker is not returning anything in the dropdown

Teams channel picker is not working as expected. it is empty tried both , channel picker image after rendering scopes: ["Team.ReadBasic.All","Channel.ReadBasic.All","User.Read",…
0
votes
2 answers

mgt-spfx web part error: Manifest not found for component id and version "2.3.0"

I have a SharePoint web part where I'm using the MGT Person component. gulp serve is working just fine. However, when I bundle/package/deploy the app and add my web part to the page, I get the following error: Manifest not found for component id…
Mike Homol
  • 481
  • 5
  • 19
0
votes
1 answer

Tasks for a particular planID and assigned to me

If I use tasks, I see only tasks assigned to me and then I can switch to different plans if needed = all is good. If use parameter targetID, tasks targetId="{PLANID}", I can target a particlar plan - this also works, all is good My requirement…
Rohit
  • 284
  • 1
  • 3
  • 14