I'm building an Extranet for a customer and I have to fill in some fields on a document when clicking a link. Until here, it works fine. After this I simply have to merge a template and store the key of this new attachment. This is done in the same edit context as before.
var editDocu = Database.OpenEditContext(ntDocu, K_DOCUMENT);
var dataDocu = Database.GetMasterDataSet(editDocu, 0);
/** Here some fields are being filled in, this works. **/
var K_NEW_ATTCHM = Database.MergeTemplate(editDocu, 7, null);
Where 7 is the key of the template. The GUEST user
has full-control security on the template
When this code gets executed I get the following error:
Cannot open Template! Can't show that item. It may have been deleted or you may not have the proper access rights to view this information.
The template (Key: 7) is an empty html template. The GUEST user has full-control security on the linked elements of the document.
Is there anything else that has to be done in order to make this work?
Thanks in advance :-)