Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 5, 2023

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.

None yet

2 participants