how to get the content type value of a specific version of an item? #1442
Unanswered
jagsridharan
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@jagsridharan : tried this in PnP Core SDK (which uses SharePoint REST for version retrieval) and see the same, no content type information in the version record. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to capture the metadata for Documents for the current version and as well all the previous version. I tried using Graph API and I am able to get all the Field values for the previous versions. However, I was not able to get the "ContentType" property of previous versions of the document. I thought this is not yet. exposed in Graph and tried the CSOM, still no luck. I can get a lot of properties under "Fields" including the actual column values, however there is no way I could get the "ContentType" used on a given version.
I cannot use the current version's Content Type, as this may not be the same in the previous versions. What is the best way to get the ContentType name (or ID) of a document's previous versions.
Regards,
Jag
Beta Was this translation helpful? Give feedback.
All reactions