Skip to content

Commit

Permalink
Merge branch 'allowAccessOfSPRequestGuid' of https://github.com/Stefa…
Browse files Browse the repository at this point in the history
…nSchoof/pnpcore into pr1464
  • Loading branch information
jansenbe committed May 22, 2024
2 parents ae0c7a8 + 9110901 commit 65a3bec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sdk/PnP.Core/Services/Core/BatchRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@ internal BatchRequest(TransientObject modelInstance, EntityInfo entityInfo, Http
/// </summary>
public HttpStatusCode ResponseHttpStatusCode { get; private set; }

/// <summary>
/// The value of the SPRequestGuid header of SharePoint also know as Correlation Id (only populated when the <see cref="Batch"/> was executed and the server send it)
/// </summary>
public string SPRequestGuidHeader
{
get
{
return ResponseHeaders.TryGetValue(
PnPConstants.SPRequestGuidHeader,
out string spRequestGuid
)
? spRequestGuid
: null;
}
}

/// <summary>
/// Additional headers supplied for this request
/// </summary>
Expand Down

0 comments on commit 65a3bec

Please sign in to comment.