Get the CorrelationId of successful requests #1460
Answered
by
jansenbe
StefanSchoof
asked this question in
Q&A
-
For Audit purpose I like to save the SharePoint CorrelationId of successful request with some additional data from my application. Is there an way to get or set the SharePoint CorrelationId in pnpcore for successful requests? |
Beta Was this translation helpful? Give feedback.
Answered by
jansenbe
May 22, 2024
Replies: 1 comment 1 reply
-
@StefanSchoof : thanks for your PR. I did include a generic method that brings selected response headers for all API calls to the SDK user, this can also be useful for you (unless you only need the correlationid for batch requests). See https://pnp.github.io/pnpcore/using-the-sdk/basics-responseheaders.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jansenbe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@StefanSchoof : thanks for your PR. I did include a generic method that brings selected response headers for all API calls to the SDK user, this can also be useful for you (unless you only need the correlationid for batch requests). See https://pnp.github.io/pnpcore/using-the-sdk/basics-responseheaders.html