Fix a SharePoint Calculated Column Based on the ID Field
Question details
The user needs a reliable way to use a SharePoint list item's ID in a calculation or link.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- A calculated column refers directly to the built-in ID field to generate a value or link.
- Observed behavior
- The calculated value may initially appear correct but later become blank, zero, or #NULL! when the item is edited.
Confirm that the formula refers to the built-in ID field and that you have permission to add a list column and create a Power Automate flow. Identify any existing items that will also need their IDs copied.
Copy the item ID to a standard column with Power Automate
Use this approach to make the assigned item ID available to a calculated column after a new item is created.
SharePoint does not reliably support the built-in ID field in calculated columns. A flow can copy the assigned ID into a regular column that the calculation can reference instead.
In the SharePoint list, select Add column > Number and name it Stored ID.
Open Power Automate and select Create > Automated cloud flow. Choose the SharePoint trigger When an item is created, then select your site and list.
Add the SharePoint Update item action and select the same site and list. Set its ID field to the trigger's ID, set Stored ID to that same dynamic ID value, and supply any other required fields.
In the list's calculated column settings, replace references to [ID] with [Stored ID]. For a URL string, a formula such as ="https://example.com/items/"&[Stored ID] combines a base address with the copied ID.
Create a list item, wait for the flow to run, and check Stored ID and the calculated result. Edit the item and verify that the result remains correct.

Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with compatible Office files. It can make moving document and spreadsheet work straightforward, but it does not fix SharePoint calculated columns or replace Power Automate.

Frequently Asked Questions
Why does my SharePoint calculated column lose the ID value?
The built-in ID is not reliably supported in calculated-column formulas and may not be available when the formula is evaluated. Copy it into a standard column after item creation instead.
Will the flow update items that already exist?
No. A flow using When an item is created only runs for new items. Create a separate flow to retrieve existing items and update their Stored ID values.
Will copying the ID cause the flow to run repeatedly?
A flow triggered by When an item is created does not run again just because Update item modifies the item. A flow triggered on creation or modification needs additional conditions to prevent repeat runs.
Can the calculated column create a clickable link?
A formula can combine a base URL with [Stored ID] to produce a URL string, but it may not render as a clickable link. Use SharePoint column formatting if you need to control how the link is displayed.




