Why SharePoint Adds Underscores to Column Names & How to Find Them for APIs
Question details
Users encounter API request errors in SharePoint because the required internal column name contains underscores or encoded characters, even if the visible display name does not.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Making API requests to SharePoint lists or libraries and referencing specific columns.
- Observed behavior
- The API request fails or requires an internal column name with underscores instead of the visible display name shown on the site.
Ensure you have Site Owner or Designer permissions on the SharePoint site to access the List Settings or Library Settings where internal names are exposed.
Identify the Internal Column Name via List Settings
Locate the exact internal name assigned by SharePoint to use in your API requests to prevent referencing errors.
When a column is created, SharePoint assigns a permanent internal name that is registered in its database. If spaces or special characters were used initially, SharePoint encodes them (e.g., replacing spaces with '_x0020_'). Even if you change the display name later, the internal name remains the same and must be used for all API calls.
Open your SharePoint list or library, click the Gear icon (Settings) in the top right corner, and select 'List settings' or 'Library settings'.
Scroll down the settings page to the 'Columns' section and click on the specific column name you want to query in your API.
Look at the URL in your browser's address bar. Find the text at the very end of the URL, immediately following 'Field='.
Copy this exact string from the URL, including any underscores or encoded characters, and use it as the column reference in your API request.

Edit Your SharePoint Documents Offline with WPS Office
While resolving complex SharePoint API configurations, you might also need a reliable office suite to handle your downloaded Word, Excel, and PowerPoint files. WPS Office is a lightweight, fully compatible alternative to Microsoft Office that lets you edit documents for free.
- 1. Download WPS Office: Download and install the free WPS Office suite on your computer or mobile device.
- 2. Download the SharePoint File: Download the target document from your SharePoint library to your local hard drive.
- 3. Open and Edit: Right-click the downloaded file, select 'Open with WPS Office', and start editing with full format compatibility.

Frequently Asked Questions
Can I change the internal name of a SharePoint column?
No, once a column is created in SharePoint, its internal name becomes permanent and cannot be altered. If you require a different internal name for your API calls, you must delete the existing column and create a new one with the desired name.
Why do I see '_x0020_' in my SharePoint column internal name?
SharePoint uses URL encoding for special characters and spaces when generating internal database names. The sequence '_x0020_' represents a space character that was present when the column was originally created.
How do I avoid underscores and encoded characters in future columns?
To avoid complex internal names, initially create the column without spaces or special characters (e.g., name it 'DocumentTitle'). Once the column is created, edit its settings to change the display name to include spaces (e.g., 'Document Title'). The internal name will remain clean.




