does anyone have good tips on how to use graph explorer through PowerShell? We are trying to automate Gets / Patch commands that done in Microsoft Graph and struggling to get good info on how its achieved through scripts.
Related
I want to download some data from Microsoft Planner and I have used the Microsoft Graph Explorer API online and have my three GET requests ready.
Let's say one of the GET requests is:
https://graph.microsoft.com/v1.0/planner/plans/E2d-w1xIyUOc6nZPfMerEmQAB266/buckets
This returns a JSON file in the 'Response Preview' pane in Microsoft Graph Explorer online.
I want to somehow initiate this GET request from a server using a script (.bat/.ps/.sh/.bash) and get this output JSON file stored on the same server.
If anyone can point me in the direction on how to achieve this, I'd be really glad?
since you want a background task to run you are best registering an application without a user then once you've authenticated you can run that in a script to run say via a cron job.
If you use Laravel I've written a wrapper for graph that supports both users and tenants https://github.com/daveismyname/laravel-microsoft-graph.
Otherwise, study https://learn.microsoft.com/en-us/graph/auth-v2-service
I am trying to start collecting Skype for Business Online data using Microsoft Graph Explorer in order to do my own reporting. Eventually, my goal is to automate this process using API calls and write the return data in my own monitoring database.
I opened a O365 trial account and using graph explorer with my global admin account to generate some SfB reports but having no luck:
SfB Business Activity Report
Am I doing something wrong here?
Also, I believe this query is supposed to return a CSV file. Is there a better way to achieve what I am trying to do?
Thanks,
The API you're using is in beta, and (contrary to the published documentation) seems to only work when:
you provide an output format parameter
that output format is JSON
The call you're trying to make will work as follows: GET https://graph.microsoft.com/beta/reports/getSkypeForBusinessActivityUserDetail(period='D7')?$format=application/json
You're not the only one waiting for these APIs to solidify and include more information. Hope this helps!
The goal is change so that the user mailbox only accepts messages from certain senders?
This can be done using PowerShell or the Exchange web interface.
Can this be done using Microsoft Graph API?
This isn't supported via Microsoft Graph.
Purely administrative functionality like this is often only accessible via a portal or PowerShell. If you're looking to build a custom front-end for this functionality, you may be able to leverage System.Management.Automation and execute the PowerShell script from C#.
I would like to run Excel Macros through the Microsoft Graph Excel API. I read through the documentation (https://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/excel) but couldn't find anything related to Macros.
Is there a way of executing my Excel Macros somehow via Microsoft Graph?
Thanks
You can't run your Excel macros from the Microsoft Graph Excel API. You will need to rewrite them to use the Microsoft Graph Excel API. In the meantime, you could voice your request for this feature at https://officespdev.uservoice.com/.
Update
Microsoft Graph has a new user voice home:
https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests
I know TFS has a web server that gets installed with it, and that's great. I know it integrates very tightly, and very well with Sharepoint, and that's also great.
What I'd like to know though, is since the WSDL's for TFS are public, essentially making the API to send and receive data from it public as well; are there any alternate, non-Microsoft interfaces to TFS that provide most or all of the functionality, with consumer-driven enhancements, such as charting, or reporting solutions not found out of the box?
I've searched the almighty Google and Bing, and they are proving very difficult to find answers from.
You can create your own solution using SharePoint Enterprise edition and a combination of Excel Services reports and SQL Server Reporting Services reports; A SharePoint solution is the closest you'll find to something.
You can use the TFS SDK and object model to create your own application, but most people don't go very deep because Microsoft's Web Access tool is a capable client tool for most teams. There were also major improvements just released in the new TFS 2012. In fact Web Access started out as a 3rd party tool and there are some ways you can extend it.
There is one app I know of off the top of my head that has a web interface to TFS that is very simple; it can be found at http://techdayskanban.codeplex.com
There is also an example of extending the TFS Web Access at http://tfstimesheet.codeplex.com
Codeplex is a good place to check around because it is open source.
A commercial example of a product that extends Web Access can be found at http://urbanturtle.com though It seems you are looking for something more stand-alone.