1

I am developing link for calendar list item .ics file. Link for 'Add to my calendar' on SharePoint Online inside SPFX webpart

I have tried below URL but it's not working:

<a href="http://<SITE_URL>/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List={<LIST_GUID>}&CacheControl=1&ID=<ITEM_ID>&Using=event.ics"> Add to my calendar <a>

Please help me in this.

1 Answer 1

3
+100

List GUID should be added without { }:

<a href="http://<SITE_URL>/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=<LIST_GUID>&CacheControl=1&ID=<ITEM_ID>&Using=event.ics"> Add to my calendar <a>

The link should be like this:

https://yourtenant.sharepoint.com/sites/yoursite/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=A70BA8FB-6F03-4545-81EF-7E30D893FBC1&CacheControl=1&ID=1&Using=event.ics
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.