Using the Graph API does not return all custom fields from a SharePoint Document Library

%3CLINGO-SUB%20id%3D%22lingo-sub-470563%22%20slang%3D%22en-US%22%3EUsing%20the%20Graph%20API%20does%20not%20return%20all%20custom%20fields%20from%20a%20SharePoint%20Document%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-470563%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20the%20Graph%20Explorer%20to%20return%20documents%20in%20a%20SharePoint%20Online%20site.%3CBR%20%2F%3EI%20use%20the%20following%20Get%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fsites%2Fxxxxxxxx.sharepoint.com%2C9da6010e-e6ec-4cb4-b818-dbb137481ebc%2Cb33fcc5d-ff7a-4a47-8631-b32246432e9c%2Flists%2Fb8f9cec9-6b11-4b7b-9f2c-e46ee71cb141%2Fitems%3Fexpand%3Dfields(select%3DDocumentType%2CDomain%2CAuthor%2CEditor%2CModified)%26amp%3Bfilter%3Dfields%2FDomain%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fsites%2Fxxxxxxxx.sharepoint.com%2C9da6010e-e6ec-4cb4-b818-dbb137481ebc%2Cb33fcc5d-ff7a-4a47-8631-b32246432e9c%2Flists%2Fb8f9cec9-6b11-4b7b-9f2c-e46ee71cb141%2Fitems%3Fexpand%3Dfields(select%3DDocumentType%2CDomain%2CAuthor%2CEditor%2CModified)%26amp%3Bfilter%3Dfields%2FDomain%3C%2FA%3E%20eq%20'kingstreet.com'%26amp%3Btop%3D1%3C%2FP%3E%3CP%3EHowever%2C%20DocumentType%20is%20not%20returned.%20It%20is%20a%20valid%20custom%20column%20which%20is%20a%20lookup%20field.%3C%2FP%3E%3CP%3EEven%20if%20I%20use%20expand%3Dfields%20without%20a%20select%2C%20not%20all%20fields%20are%20returned.%3CBR%20%2F%3EHow%20should%20I%20get%20this%20field%20to%20be%20displayed%20in%20the%20results%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I am using the Graph Explorer to return documents in a SharePoint Online site.
I use the following Get:
https://graph.microsoft.com/v1.0/sites/xxxxxxxx.sharepoint.com,9da6010e-e6ec-4cb4-b818-dbb137481ebc,... eq 'kingstreet.com'&top=1

However, DocumentType is not returned. It is a valid custom column which is a lookup field.

Even if I use expand=fields without a select, not all fields are returned.
How should I get this field to be displayed in the results?

0 Replies