[Bug] Code snippet provided is wrong

Hendrik 111 Reputation points
2024-08-05T15:20:55.22+00:00

This is not really a question but more of an issue with the learning path for SPFx. One of the code samples here is not working as expected:

private async _getItemEntityType(): Promise
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,949 questions
Microsoft 365 Training
Microsoft 365 Training
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.Training: Instruction to develop new skills.
60 questions
{count} votes

Accepted answer
  1. kguntaka 2,470 Reputation points Microsoft Vendor
    2024-08-06T07:57:20.3866667+00:00

    Hi Hendrik,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    We appreciate your insightful recommendation on the MS Learn platform. Our engineers constantly strive to provide the greatest experience possible for our end customers, thus we make sure to update our documentation with the most recent updates. Regarding your proposed code, I concur with your recommendations. This will imply that the provided assertion is also accurate. While the default code provided in the unit tries to access a property (ListItemEntityTypeFullName) that is not returned by that endpoint and uses an endpoint that retrieves list items. According to your advice, it immediately retrieves the "ListItemEntityTypeFullName" for the list via the proper API and appropriately handles the response. We will let our backend team know about this comment.

    If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.