Hi,
I´ll process some office documents (pptx and docx) as templates and deliver this customized documents to a user. The template document with some wildcards is stored in a hidden document library and should be uploaded with permissions to a public document library.
Have you tried to use parameter -TemplateUrl for the template document (“source”) and -ToUrl for the created document (“destination”). You should be able to use URLs for both, just as you want. There is no need for local files.
You need to specify “Server Relative URLs” for both -TemplateUrl and -ToUrl.
This delivers no error but also no document is there as a result. If I insert in the template a wrong field I get an error. So it looks like the template is processed correct but the upload won´t work.
This was a bug indeed. Thank you for reporting it to us!
Please keep in mind that Invoke-KFFileTemplate is currently experimental.
Nevertheless we fixed it in version 2.0.24 that we will publish in some minutes.
Please keep us informed if you were able to test the new version.
After the fix this worked for us: Invoke-KFFileTemplate -TemplateUrl "/freigegebene dokumente/Template1.pptx" -TemplateType PowerPoint -ToURL "/freigegebene dokumente/Template1_Final.pptx" -OverwriteIfExists