I have a process I'm trying to debug. It appears a Document Folder has gone AWOL, but I don't know which one. What I need to do is plug the IDs of the Folders into the folder() function or some other function in a test rule to see what's there and what's not there.
The problem: I can't get the ID of the folder from the Process. It's just displayed as a Text title. OK, I have a string title. What function do I put that string into and it spits out the Folder's ID? It's not toFolder().
The next problem: We have several thousand folders that all have the same name, so if I have only a name, it's not even possible to use that to limit the folders returned. How can I get the ID? I have a Folder PV, and I don't need its Name; I need it's ID. How in the world am I ever supposed to find it?
Discussion posts and replies are publicly visible
Is the process variable for the folder of type "Folder" or "Document or Folder"? If so, tointeger(pv!folder) will return the folder ID.
So I create a script task in the running process instance and run that to get my answer?
Yes, you'll have to edit the running process instance to first add a new process variable of type number integer, and then add a new script task that will save tointeger(pv!folder) into the new pv. Then re-run a node in the process such that the new script task is evaluated, and you should now have the folder id.
Product enhancement request to just display the ID and name of a Folder when "Folder" is the type of the PV?
Created product use case #3043