Skip to content

Adding option to write Graph output from Invoke-PnPGraphMethod to file#2971

Merged
gautamdsheth merged 3 commits intopnp:devfrom
KoenZomers:InvokePnPGraphMethodToFile
Apr 5, 2023
Merged

Adding option to write Graph output from Invoke-PnPGraphMethod to file#2971
gautamdsheth merged 3 commits intopnp:devfrom
KoenZomers:InvokePnPGraphMethodToFile

Conversation

@KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Added -OutFile option to Invoke-PnPGraphMethod which allows the output of the request to be written to a file. This allows i.e. binary results such as calls to https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/$value` to be written to a valid file instead of parsing it as a string first and then writing it to a file, which would not work for binary content.

@gautamdsheth gautamdsheth merged commit eb6d17b into pnp:dev Apr 5, 2023
@gautamdsheth
Copy link
Collaborator

Thanks @KoenZomers !

Maybe we can also introduce something like Stream for folks to upload files using this cmdlet ? Something to think about ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants