Skip to content

Extract metadata values from columns in SharePoint site #777

@EBIMASTER117

Description

@EBIMASTER117

I am having difficulty extracting the values of metadata fields from the SharePoint site for the file I am looking at.
Here is an example of the columns that I have
image

I am trying to collect the value of the DocumentDate column.

Sample of the code I have used:
target = Sharepoint_Context.web.get_file_by_server_relative_path(file_url).expand(["listItemAllFields"]).get().execute_query() target.get_property()

This essentially returns "None"
I am using version 2.4.3 of the package. Can you please advise if I am going about this incorrectly or is there something I am missing? @vgrem

Update:

Figured out how to extract the relevant piece of information by collecting the list item and accessing the property from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions