I want to hijack the call to CoreInvoke on Adding a new document for a given SharePoint online document library so I can prompt the user for some metadata and populate the Word document with it automatically.
What's the best way to do this?
The documents library is a custom content type with a template. I have form fields in the MS Word document which should be automatically set to a handful of library columns. This is SharePoint Online.
I've tried CoreInvoke but can only get it to open a new document using the template. I've tried using the FileReader API (https://msdn.microsoft.com/en-us/library/office/dn769086.aspx) but that's going to require the user to select the template manually each time.
Any help is appreciated!