thanks for you reply. Sorry I only saw it now.. some spam filter.
I managed to do it all in filemaker native.
The secret is to use get(documents path ), it seems that server does not access the Temporary folder as well as the Library/Filemaker Server/Documents folder.
I am a bit proud..hehe..
My script does, check if it IS on server, calculate a path, $caminhoserver save a pdf to this path and then uses Insert from URL to import from this pdf at $caminhoserver which is on the following place:
/server100gb/Library/FileMaker Server/Data/Documents/relmat19-05-2017h1545.pdf change it to URL notation
To clean up it uses Export Records with an empty set to delete this file.
no.. it is no bug.. I think. I think that Filemaker server can only write to Get( TemporaryPath).. but not read afterwards, since, as I understood it, this folder is deleted after the script. .... Or at least I could not make it work.
However I managed to create a pdf on server, save it to Get(DocumentsPath), then import that .pdf with the Insert from URL script step into a Container field, so that Users can always access this file/report with click. Then I delete the pdf file in the Library/Filemaker Server/Documents folder by Export Records with an empty set.
Yes, the Documents (relative to FMServer, not a User!) and Temporary directories are available to FMS. The Temp does delete automatically.
If you need to delete from the Documents folder, there are thread here (and elsewhere) to show you ways.
I am having a similar problem on a FileMaker Server 16 hosted file on a PC.
I have a similar script running without problems on a FMS15 hosted file on a PC. It works using the Temp directory just fine, by the way.
But in a different file, also on a PC but hosted on FM16 the Insert from URL is failing.
Any other suggestions?