Forum Discussion
Linking a specific OneNote page to a Sharepoint List
Hello,
I am trying to link a OneNote page in a Sharepoint list via the Hyperlink field. So basically users would copy the link to the OneNote (shared) page in the URL field of Sharepoint. However, I keep getting an error when I save the list with the page URL in (it works well before saving!). I can link the general notebook, but not a specific page (which is what I am interested in). I read it might be linked to a limitation in the number of characters that Sharepoint accepts as URL? Can somebody help me on this?
Many thanks!
Kind regards
Valeria
2 Replies
- virendrakIron Contributor
Use a Multiline Text Column + JSON Formatting
Create a Multiline Text Column instead of Using Hyperlink Column
- Go to your list or library settings.
- Add a new column > choose Multiple lines of text.
- This column type supports much longer values than the Hyperlink field.
- If using a document library:
- In Advanced Settings, set “Allow unlimited length in document libraries” = Yes.
- If using a list:
- Multiline text already supports unlimited length.
Apply JSON Column Formatting
Use JSON formatting to render the text as a clickable link:
- Hover over the column header you just created.
- Click the down arrow > Column settings > Format this column.
- A panel opens on the right side.
- In the formatting panel, click Advanced mode.
- Paste this JSON code:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "style": { "color": "#0078d4", "font-weight": "bold" }, "attributes": { "target": "_blank", "href": "=@currentField" }, "txtContent": "Open OneNote Page" }- Click Save.
If my post solved your issue or answered your query, please mark it as a Solution and give it a Like.
- Jan_SeifriedCopper Contributor
Today I have exactly the same requirement. I want to use a SharePoint List for task tracking and OneNote for documentation of the results. I am looking for a way to reference the corrsponding OneNote page within a task.
Is there no solution for this?