What I’m trying to do
Okay, here’s a tough one! I am creating an enterprise system of sorts. When syncing, each user will only be receiving certain files & folders. For each user, they will have a different homepage.
Each user has the same folder structure under their name.
User A
Mileage
Cases
Extras
VFC Communication
Address Book
User B
Mileage
Cases
Extras
VFC Communication
Address Book
Etc.
On each homepage will be buttons linked to forms that will create content that needs to drop in their folders only.
The best way to do this (I think) is to create relative links when setting up the buttons for the homepages. So if User A clicks the meta-bind button for Mileage, when a mileage record is created, it should drop the note in User A/Mileage.
I do not want to have to create a brand new homepage for each user, since there are over 200 of them! I want to create it once, then, with a script, drop the file into the each user’s Extras folder automatically.
Note: The folder structure is already automatically created when a new user is generated.
Things I have tried
I tried to create a template that creates the homepage. On the template, I used Meta Bind to create a button for Mileage using the templatecreatenote function. I called the appropriate template, but when I tried to identify the folder to drop the note, I had to select from a list of existing folders (ie the Absolute path). There wasn’t an option for relative path. Without choosing a path, it is dropped in the root folder, which defeats the purpose.
Note: I did enable relative paths in the settings.
Is there a way to use js to create a script that identifies the relative path? The template for each user is in their own Extras/Template folder.