Search the Community
Showing results for tags 'external folder'.
Found 1 result
Not sure if this is the relevant area however, I couldn't seem to find a scripting section What I would like to do and I have had no success so far is the following scenario. I have database which stores references to files in container field located on a folder on a shared computer. What I want to do is have a script which when run populates the database with the names of those files located in the folders on the computer and create a new record for those not already present and if they are already present ignore the import. I have tried a test script which gets the documents path and loops through each record however I get file unknown when debugging and that is as far as it goes. The script in no one handles the above scenario of omitting and inserting only new docs it was just a test to see if it was possible to import via this method. From what I can see the script is asking for a particular filename and if it can't be found it throws the error. That though is no good as essentially the filename is in a sense unknown at the time of import and that is what the purpose of the script would be i.e. too find those files and create a new record with reference only in a container. Documentation on this is either non existent or sparse and confusing to say the least (or at least that's how I find it) Any enlightenment would be appreciated.