How to add Ical file link in Calendar list column

Jayashri Thorat 351 Reputation points
2021-11-10T09:48:29.93+00:00

Hello,

I have tried to add a Calculated column with below formula in Calendar list:
="<a href='http://test.sharepoint.com/sites/Test/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=%7B32F2AA86-D748-42CC-919C-973BF179244D%7D&CacheControl=1&ID="&[ID]&"&Using=event.ics'>Ical</a>"

Column Data Type : Number

But it's simple displaying as below:

148110-image.png

Can you please guide how to proceed further.

Thanking you in advance.

Regards,
Jayashri

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. CaseyYang-MSFT 10,466 Reputation points
    2021-11-11T02:35:38.337+00:00

    Hi @Jayashri Thorat ,

    You could try to add some JSON codes to format the column markup as HTML.

    For Example:

    {  
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",  
       "elmType": "a",  
       "txtContent": "your document name",  
       "attributes": {  
          "target": "_blank",  
          "href": "='http://xxx.sharepoint.com/sites/xxx/' + @currentField"  
       }  
    }  
    

    For Reference: SharePoint Online: Format Calculated Column as Hyperlink
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.