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


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:


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.