question

JayashriThorat-2322 avatar image
0 Votes"
JayashriThorat-2322 asked CaseyYangMSFT-4714 answered

How to add Ical file link in Calendar list column

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


office-sharepoint-online
image.png (24.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered

Hi @JayashriThorat-2322,

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.