Adding Custom Actions with JavaScript to the Host Web from an App

You can add custom actions to the host web using CAML in an App package, but there is a serious restriction: you can’t invoke any JavaScript. Liam Cleary noticed this limitation on twitter not long ago.

I soon replied…

I had the code lying around and so I made a demo for him using Napa. One of Napa’s cooler features is the ability to publicly share app code. The code also illustrates the use of the cross domain library to access the host web from the app web.

You can view the full sample here: .

Happy coding!

Author: Doug Ware