SharePoint Document Issues

Fix a SharePoint Calculated Column Based on the ID Field

Huma Ashraf ChHuma Ashraf Ch Nov 22, 2026 868 views

Question details

The user needs a reliable way to use a SharePoint list item's ID in a calculation or link.

Fix a SharePoint Calculated Column Based on the ID Field
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.
Before you start

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.

Solution 1Recommended

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.

1
Add a number column

In the SharePoint list, select Add column > Number and name it Stored ID.

2
Create a flow

Open Power Automate and select Create > Automated cloud flow. Choose the SharePoint trigger When an item is created, then select your site and list.

3
Copy the ID

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.

4
Update the calculation

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.

5
Test a new item

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.

Copy the item ID to a standard column with Power Automate
Existing items and links: The creation trigger only processes new items. Use a separate flow to populate Stored ID for existing items. A calculated URL string is not necessarily displayed as a clickable hyperlink; link rendering may require column formatting.
Free Microsoft Office alternative

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.

Review and edit spreadsheets related to SharePoint list data.Work with Microsoft Office formats, including DOCX, XLSX, and PPTX.Use a familiar interface to make the transition from Microsoft Office easier.Access document, spreadsheet, and presentation tools in a lightweight suite.
microsoft office alternative - wps office

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.