Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting File Version Custom Fields #828

Open
samer1977 opened this issue Feb 17, 2024 · 0 comments
Open

Getting File Version Custom Fields #828

samer1977 opened this issue Feb 17, 2024 · 0 comments
Labels

Comments

@samer1977
Copy link

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

@vgrem vgrem added the question label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants