Skip to content

Missing field "createdDateTime" when retrieving pages of a site #8831

@roelplieger

Description

@roelplieger

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Linux

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

When retrieving news items of a site using the Microsoft Graph API the field "createdDateTime" is missing. The url we're using is:
https://graph.microsoft.com/beta/sites/{siteId}/pages?expand=webparts&$filter=promotionKind%20eq%20'newsPost'
This returns all news items successfully, but without the specified field.****

Steps to reproduce

  1. determine the siteId of the site
  2. call the MS Graph URL with the siteId in it
  3. see that the field is missing (attached an example of what is returned, all personal info is replaced by "x").
    SharePoint-export.txt

Expected behavior

Following the documentation on https://learn.microsoft.com/nl-nl/graph/api/resources/baseitem?view=graph-rest-beta we would expect to see the field "createdDateTime" in the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions