AnsweredAssumed Answered

Get(TemporaryPath) not recognised for Insert PDF on FMGo

Question asked by TimAnderson on Jan 11, 2018
Latest reply on Jan 11, 2018 by TimAnderson

I am trying to create a script that saves an invoice as a pdf and saves it to a container field on FMGo 16, iOS 11.2.2

 

It works great if I use the Get(DocumentsPath) but if I use Get(TemporaryPath) it appears that it cannot find the pdf and brings up the insert file dialog. I do not want to use the Get(DocumentsPath) because it will fill us with invoices that should not be held there. On OSX I can delete the pdf after being imported by exporting an empty container field and giving it the same name as the pdf, this does not work on iOS.

 

The alternative is to do this on the server, using PSOS, which works fine using Insert from URL, but I cannot get a preview of the pdf using this.

 

Is there a way to do this?

 

Oh, just thought - I could save the pdf with the same name every time and rename it after import ( Base64Encode & Base64Decode) - may be the way.

 

Thanks

 

Tim

Outcomes