For a search function in an application I would like to place results in a private (desktop) folder. For that I created a shared, private on first use folder. I do not want to have a folder residing on the server side because I fear this will blow up the view indexes. It is also a restriction in our environment (create personal folders is by default disabled).
The private folder will be created when opening the search form which is embedded in a split frame (on top the search form, in the bottom the folder).
However when I use the PutInFolder method, this tries to place result documents in the first folder it finds, in this case the shared, private on first use folder.
This is also confirmed via a warning message:
If I look in design it seems the method wants to place the documents in the first folder it finds:
On the other hand, when I have a document opened the AddToFolder formula has no problem with finding the correct folder:
My question is quiet simple:
How can I make sure that my code places the documents in the private folder and not the shared one?