- Published on
- Authors
- koskila
How to add AdditionalHeaders to Invoke-PnPGraphMethod?
This article explains how to easily add additional headers to the Graph API calls you make in PowerShell using Invoke-PnPGraphMethod commandlet. There's a convenient sample for you to copy-paste and some basic explanations on what we're doing below. Background Every now and then, I need to make some Graph API calls from PowerShell. And there's a convenient PowerShell commandlet available to make it easy to do just that - Invoke-PnPGraphMethod.











![Cover image for How to fix "System.InvalidOperationException: The property 'ItemBody.AdditionalData' could not be mapped because it is of type 'IDictionary', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'." in .NET 7 and Entity Framework?](/cdn-cgi/image/sharpen=1,format=auto,quality=90,slow-connection-quality=50,onerror=redirect,fit=scale-down,width=1920/images/13525-2019-11-11_12-01-271.jpg)











