You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update use of GraphHelper
* Renamed GraphHelper to ApiRequestHelper
* Simplified examples
* simplified URL
* renamed file and updated url handling
* Nightly publish to PowerShell Gallery
* Update to version checker
* Rewrote to use tracelog and added Format-PnPTraceLog cmdlet
* Added automatic login: more work to do
* switched to settings.json
* Nightly publish to PowerShell Gallery
* Add ExtendPermissionsToUnprotectedFiles parameter to Set-PnPTenant cmdlet (#4602)
Co-authored-by: Gautam Sheth <[email protected]>
* Nightly publish to PowerShell Gallery
* Added deprecation notice on the SharePoint Mail API
* Nightly publish to PowerShell Gallery
* Added paramset for working with doclibs
* Finalized implementation of Get-PnPFolderItem
* Added same logic to Get-PnPFileInFolder and Get-PnPFolderInFolder as well
* Added changelog entry
* moved from cachesettings.json to settings.json
* Updated handling of tracelog
* refactored private field name
* Updated tracelogging
* renamed file
* Updated tracelogging cmdlets
* Nightly publish to PowerShell Gallery
* removed unneeded include
* Removed unused usings
* Fixed using
* Changed warning message
* Updated cleaning
* Updated cache enabled message
* Fixed JSON escaping in log message
---------
Co-authored-by: Gautam Sheth <[email protected]>
Co-authored-by: Gautam Sheth <[email protected]>
Co-authored-by: Koen Zomers <[email protected]>
Takes the user profile photo of the specified user and uploads it to the specified library in SharePoint Online.
124
124
125
125
### Example 8
126
126
```powershell
127
-
$task = Invoke-PnPGraphMethod -Url "https://graph.microsoft.com/v1.0/planner/tasks/23fasefxcvzvsdf32e" # retrieve the task so we can figure out the etag which is needed to update the task
127
+
$task = Invoke-PnPGraphMethod -Url "planner/tasks/23fasefxcvzvsdf32e" # retrieve the task so we can figure out the etag which is needed to update the task
This example retrieves a Planner task to find the etag value which is required to update the task. In order to update the task through call to the Microsoft Graph API we need to include an If-Match header with the value of the etag. It then creates the content to update, in this case the title of the task, and calls the PATCH method on the Graph end-point to update the specific task.
135
135
136
136
### EXAMPLE 9
137
137
```powershell
138
138
$batch = New-PnPBatch -RetainRequests
139
-
Invoke-PnPSPRestMethod -Method Get -Url "https://graph.microsoft.com/v1.0/users" -Batch $batch
140
-
Invoke-PnPSPRestMethod -Method Get -Url "https://graph.microsoft.com/v1.0/groups" -Batch $batch
139
+
Invoke-PnPSPRestMethod -Method Get -Url "users" -Batch $batch
140
+
Invoke-PnPSPRestMethod -Method Get -Url "groups" -Batch $batch
0 commit comments