eljefejb Posted Friday at 05:37 PM Posted Friday at 05:37 PM Hello, I'm creating a "mailer" file to send HTML emails from FileMaker without the need for a third-party plugin. The idea is that whenever another FM app needs to send an email, it can just ball up some JSON and call the "Send Mail" script from the central mailer file with the JSON as the script parameter. I've read that if the same credential set exists for the logged-in user in both files, opening the secondary file will be transparent. However, if not, the user is presented with a login dialog. Since the "Open File" script step is not supported on WebDirect, I can't just detect if the file is open (via the DatabaseNames function) and have the script log in. Using PSOS still shows the dialog. Is there any way to run a script from another FM file without the user seeing a login dialog and without needing to duplicate user accounts in the second file?
comment Posted 17 hours ago Posted 17 hours ago I am not sure how applicable this is to your situation but the URL scheme allows you to call a script in another file with the credentials passed in the call itself: https://help.claris.com/en/pro-help/content/opening-files-url.html Another option you may consider is the Data API: https://help.claris.com/en/data-api-guide/content/run-a-script.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now