I have created a LS and placed it behind a button to create a replica from a database on the server to users machine.
The button is placed in the email sent to all users. THIS BIT WORKS GREAT.
However, our users are not all connecting to the same sever, they are split into two server.
At the moment I have hard-coded the main server name in the script that creates the replica, how can I change it so that the replica is created from the mail server that the user belongs to.
For example, if my mail server is server1 and user2 mail server is server2 then I want to create my replica from server1 and I want user2 to create their replica from server2. Both server will have a replica of the database.
Also, is there a way in LS to bookmark the replica that the user creates on the bookmark within the same script(create replica script)?
i know that I can create a bookmark with @command([addbookmark;......]); but I need to use LS.
Thank you in advance.