Hi,
following the tutorial for HR_Assessment in "Building a process" there is a folder created for a hire.But any time the process is resartet for debugging or testing, the folder "HR_Lucie_Pressnel" for example gets created over and over again, each time with an new id, but same name.
I tried to modify the example by testing for the existence of a folder with the same name, but cannot find a suitable function/Smart Service.
Why?
Some people suggest to use a database to store all the information the KC or the folders already represent. And it assumes that you always have a database with this information to search for.
But is it realy neccessary to build complex database storage and query function for a simple
(list) listDir() or (int) getDocumentByName(name) function?
Thx
Olaf
Discussion posts and replies are publicly visible
thanks for your answer. Appreciate it.
You are right. "extensive database" operation is not needed here.
but your answer shows me also that there is indeed always a database operation needed in order to handle folders.
It is not just done by a function or rule.
you do need to make a query to the database and lookup "name" or "id" or" folderid" in case a new hire is showing up. You canot just get a list of dirs as array and index(list,item,default) on it, without the database.
but it is as it is, and it is not a problem at all.
thx again.