Hi,
I have an external file available in a web link: https://www.nubefact.com/cpe/22790c6d-111d-4879-a6af-03ac7566eac9-03bc4234-178e-4bf6-87a2-42ede2f83bc7.pdf
And I want to bring it into some X3 folder, for example: C:\Sage\folders\FOLDER\tmp\
I was able to download it by opening a new tab in the browser allowing the user to download the file using this:
Callui RETOUR="" With "UIAction="+chr$(1)+"OpenFile", & "UILocalDir="+ chr$(1) +"HTTPS", & "UILocalFile="+ chr$(1) +URL , & "UIAdxPubSubFile="+ chr$(1) + "1"
But now I need to download it directly to an X3 folder.
I tried to use this example as a base, but I couldn't get it to work:
# Example 1: copy a file from the server to the client workstation Callui RETOUR="" With "UIAction="+chr$(1) + "GetFileAlways", & "UIRemoteFile="+ chr$(1) + URL, & "UILocalFile="+ chr$(1) + "my_fyle.pdf", & "UILocalDir="+chr$(1) + "C:\Sage\folders\FOLDER\tmp\"
Does anyone know if it is possible to do this?