I have a script that runs daily, that sends an email notifying FM clients that they have not followed up on something. Included in the email is a Snapshot Link to easily direct them to the record where action is required.
All is well and good for clients on the LAN, but for those accessing the hosted file from the WAN, the Snapshot Link will not work. If I open the Snapshot Link with TextEdit, and change the LAN address to the WAN address and save it, all works fine and the client is prompted for a user name and password, and the correct record access occurs in the remotely hosted file.
Below is the xml in the Snapshot Link showing where the LAN to hostname change was made:
<?xml version="1.0" encoding="UTF-8"?>
<FPSL><UIState><UniversalPathList>fmnet:/10.0.1.2/MyFile.fmp12</UniversalPathList><Layout id="14"></Layout><View type="form"></View><SelectedRow type="nativeID" id="85"></SelectedRow><StatusToolbar visible="True"></StatusToolbar><Mode value="browseMode"></Mode><SortList Maintain="True" value="False"></SortList></UIState></FPSL>
The Server is generating the emails (around 50 per day), and the .fmpsl file is placed in the server documents folder, [Get (DocumentsPath), and each successive record overwrites the .fmpsl with a new file with the applicable information about the record, which gets attached to the next email.
Is there a way for the Snapshot Link to reference our external host address rather than the internal LAN IP?
I tried saving the Snapshot Link to: [Get (DocumentsPath) & "myhost.com/sslink.fmpsl"], but since there is no myhost.com folder in the Server/Data/Documents folder, the .fmpsl does not get created or attached.