Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
Getting File Version Custom Fields
Hi Guys,
I know this is all about OData but I search the whole internet and could not find my answer. Its really simple , I just need to get whatever equivalent to the file ListItemAllFields ,ListItemAllFields/FieldValuesAsText but for file version. I tried something like this:
versions = file.versions.expand(["ListItemAllFields","ListItemAllFields/FieldValuesAsText","Fields"]).get()
ctx.load(versions)
ctx.execute_query()
but its not returning anything besides the system properties.
For files the following works and I get all fields:
files = list_source.files.expand(["ListItemAllFields","ListItemAllFields/FieldValuesAsText"]).get()
ctx.load(files)
ctx.execute_query()
Can you please help Thanks