Findfoldersbyname() appears to search for folders that CONTAIN the string, not t

Findfoldersbyname() appears to search for folders that CONTAIN the string, not that are named the same as the input string.

We are creating folders in the system named according to an ID number that comes from an external database, to save uploaded files for our process. We have now seen an occurance where we have seen the IDs conflict due to one being a substring of the other.

To show a clear example, an old process had an ID of 123456, we then had another process show up with an ID of 3456, the second (3456) found the folder of the first.

Our function call is:
findfoldersbyname(
false,
pv!crsExceptionID_int,
cons!CAC_EXCEPTIONS_DOCUMENTS_ROOT_FOLDER,
cons!CAC_EXCEPTIONS_DOCUMENTS_ROOT_KC)

I confirmed the problem was occurring by creating a test rule and feeding it the two IDs, both of which found the same folder.
Do we need to change it out to another function (and if so, what function? When searching int he documentation I...

OriginalPostID-121810

OriginalPostID-121810

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data