Closed mdissel closed 8 months ago
Select the OData__ColorHex property
await sp.web.getFolderByServerRelativePath("/sites/Contoso/Files").folders.select('*,ListItemAllFields/OData__ColorHex').expand('ListItemAllFields')();
Yes!! Thanks for the quick answer!
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
What version of PnPjs library you are using
3.x
Minor Version Number
14
Target environment
SharePoint Framework
Additional environment details
SPFX
Question/Request
I'm trying to list all the subfolders of a parent folder AND return the ColorHex property. Any tips?
/_api/web/getFolderByServerRelativePath(decodedUrl='%2Fsites%2F221229%2F18123456789%2FXXXX')/folders?&$select=*,ListItemAllFields&$expand=ListItemAllFields
This returns all properties, but the ColorHex property is not returned.
see https://pnp.github.io/script-samples/spo-create-colored-folder/README.html?tabs=pnpps