diff --git a/src/sdk/PnP.Core/Services/Core/BatchRequest.cs b/src/sdk/PnP.Core/Services/Core/BatchRequest.cs index 5db39742c7..7857480e58 100644 --- a/src/sdk/PnP.Core/Services/Core/BatchRequest.cs +++ b/src/sdk/PnP.Core/Services/Core/BatchRequest.cs @@ -105,6 +105,22 @@ internal BatchRequest(TransientObject modelInstance, EntityInfo entityInfo, Http /// public HttpStatusCode ResponseHttpStatusCode { get; private set; } + /// + /// The value of the SPRequestGuid header of SharePoint also know as Correlation Id (only populated when the was executed and the server send it) + /// + public string SPRequestGuidHeader + { + get + { + return ResponseHeaders.TryGetValue( + PnPConstants.SPRequestGuidHeader, + out string spRequestGuid + ) + ? spRequestGuid + : null; + } + } + /// /// Additional headers supplied for this request ///