PRINTDOCURL function

256 views
Skip to first unread message

Liviu Buligan

unread,
Sep 29, 2021, 10:35:05 AM9/29/21
to Softone Developers Network
Hi. 
I need an advice from you. How to get a a pdf file fromS1 cloud?

The need:
I need to upload to a 3rd party software pdf documents from Soft1.
The 3rd party API  provide a WS that ask for the pdf file URL in a format like "http://myserver/myfile.pdf"
What i have tried: 
I tried to use PRINTDOCURL function. I sent the url to the 3rd party WS and the call is succesful, but we obtained is a record with a null file (nothing is uploaded)
I studied the URL returned by the PRINTDOCURL function and i believe it is not actually a file link but is a GET command to a S1 WS that returns as response a pdf file.

I noticed that the URL  is not expiring in 10 minutes as stated in the blackbook, being available for hours. 

I am letting here a link to a romanian public demo document, i suppose you can access it any time. 

https://01102330593712.oncloud.gr/s1services?filename=01102330593712/xcommand=prt463986484&token=9J8pMLObDqHKK2KrHKraLsD5G5ebDKLPHL4bDqPLHLLsLMLKM55bL2KrHN559JL3Ka5KLNPPHG&.pdf;1253

So can anyone advice me how I can get a link to a physical file (if available) printed from S1 in cloud?


Many thanks, 
Liivu
Reply all
Reply to author
Forward
0 new messages