very good detailing and execution. thanks for the video. :)
@lobbi50002 жыл бұрын
Really good video
@kmuralikrishna15823 жыл бұрын
Really appreciate.. But you know we need to get only particular user like when user search from text box that particular user details need to get instead of all users .. Can you help me...hope you wi reply
@cloudatica3 жыл бұрын
For that you just need to call the right Graph API with right parameters that meet your requirement (Microsoft Graph explorer and Graph API documentation are your friends for finding which API is best for you). For example, for getting a user detail by email of the user, I played around with a sample user email "MiriamG@M365x214355.onmicrosoft.com" by calling the Graph API as below: graph.microsoft.com/v1.0/users/MiriamG@M365x214355.onmicrosoft.com and, got following result: { "@odata.context": "graph.microsoft.com/v1.0/$metadata#users/$entity", "businessPhones": [ "+1 858 555 0109" ], "displayName": "Miriam Graham", "givenName": "Miriam", "jobTitle": "VP Marketing", "mail": "MiriamG@M365x214355.onmicrosoft.com", "mobilePhone": null, "officeLocation": "131/2103", "preferredLanguage": "en-US", "surname": "Graham", "userPrincipalName": "MiriamG@M365x214355.onmicrosoft.com", "id": "08fa38e4-cbfa-4488-94ed-c834da6539df" } Searching is similar but a bit different too. Searching means you have to search on some field and be ready to get multiple records as the result. For example, let's say you want to find users that have display name starting with "mir" in your email domain ending with "microsoft.com", you'll call Graph API as below: graph.microsoft.com/v1.0/users?$count=true&$search="displayName:mir"&$filter=endsWith(mail,'microsoft.com')&$orderBy=displayName&$select=id,displayName,mail and you'll the result like following: (this sample had only one user meeting this criterial but it could be multiple) { "@odata.context": "graph.microsoft.com/v1.0/$metadata#users(id,displayName,mail)", "@odata.count": 1, "value": [ { "@odata.id": "graph.microsoft.com/v2/dcd219dd-bc68-4b9b-bf0b-4a33a796be35/directoryObjects/08fa38e4-cbfa-4488-94ed-c834da6539df/Microsoft.DirectoryServices.User", "id": "08fa38e4-cbfa-4488-94ed-c834da6539df", "displayName": "Miriam Graham", "mail": "MiriamG@M365x214355.onmicrosoft.com" } ] } Now, for getting more details about the users in this list, you can call the API to get user detail by email. This link has more details on how to call users related Graph API for different scenarios with some good examples: docs.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0&tabs=http Hope this helps.
@kmuralikrishna15823 жыл бұрын
@@cloudatica really Thanks for reply. Question is it seems like every thing static output its not dynamic output. Example graph.microsoft.com/v1.0/users/myemail@ac.com Yes i am also can see all details if myemail . if i call this same (UpdateContext({UserProfile:PowerUserConnector.getmyuserdetails()}))i can get same details in powerapp, but question is if at all i want to get other user details, what code like above i can use....i can not get it seems how to get or GraphAPI to get User details.
@cloudatica3 жыл бұрын
@@kmuralikrishna1582 What error you are getting when you try to get detail for other user? It might be related to the permission you have. Can you tell me more about your requirement? For some of the requirements for getting other user detail in PoewrApps, you may not even need custom connector. If you are interested, you can also book your first complementary consultation session at cloudatica.com
@samareshbd3 жыл бұрын
We know Graph api retun 100 records in signle call. How can i handle paging? How Bearer token is adding to Header? If i want to use sharepoint as resource which will be different for different tenant how can i handle it?
@cloudatica3 жыл бұрын
Thanks for the question. Paging is supported in Graph API, you can use that in your call. Here is Microsoft documentation on that: docs.microsoft.com/en-us/graph/paging Also, can you share more details about your scenario that needs more than 100 records? If it's sharepoint, is out of box custom connector not meeting your requirement?
@So1dier Жыл бұрын
Hi, trying to use custom connector in Power Pages to access graph api. Doesn't seem to be a valid choice for Power Pages. Do you know if this is available for Power Pages, and if not what should be used instead? Thanks for the video.
@cloudatica11 ай бұрын
Unfortunately, Custom Connectors are only supported in Canvas Apps and are not available for Power Pages. For Power Pages, you will need to use Dataverse Dataflows.