SharePoint: The default value for the custom column which set by the SharePoint REST API will be disappeared after a couple of hours.

Anonymous
2024-10-28T15:01:10+00:00

SharePoint: The default value for the custom column which set by the SharePoint REST API will be disappeared after a couple of hours.

Here are the steps to reproduce the issue:

  1. Create a new Modern team site collection not connected to M365 group by using PowerShell command ( New-PnPSite -Type TeamSiteWithoutMicrosoft365Group)
  2. Create a new list in the new site and open list settings. Advanced settings -> Select Yes to Allow management of content types and OK
  3. At the settings page, select Add from existing site content types from Content Types.
  4. Add a custom content type and select OK. This will add custom columns in the Columns section at the settings page.
  5. Set the default value for the column by using SharePoint REST API.
  6. It will set the default value; however, the default value will be disappeared after a couple of hours. When upload a file to the document library which has the custom column, the default value does not show.

Is there anything I need to set in order to keep the default value for the column permanently?

Microsoft 365 and Office | SharePoint | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-28T16:07:31+00:00

    Dear Yuri_999,

    Good day! Thank you for posting to Microsoft Community.

    This forum is mainly focus on Microsoft 365 and Office in-built features.

    Since your question is related to the utilization of graph API, I sincerely recommend you post your concern to the specific channel SharePoint Development - Microsoft Q&A. Members and engineers over there are proficient in the knowledge of graph API issues related to SharePoint. We are sure that our experts from that team can address your query effectively and accurately.

    Thanks for your understanding and cooperation! Hope you have a nice day!

    Sincerely,

    Ralph | Microsoft Community Moderator

    0 comments No comments
  2. Anonymous
    2024-10-30T19:53:34+00:00

    Yes, I will. Thank you for your support.

    0 comments No comments