Just wondering if anyone can guide me through the SQL that would return the path to the SWITCH name if I start with the Agent Login value.
So, if the Agent Login in question was in …/SWITCH1/Agent Logins/Top Floor/West Side/Front/123456 (where 123456 is the Agent Login), how would I work out the path between the Agent Login and the Switch if I was given the value 123456 to begin with?
I’m mortified that this thread has languished so long without a reply from me. Apologies.
That’s great code, but no, I’m not attempting to identify Agents.
I’m trying to determine the folder structure in which any given Agent Login resides.
I’d like to be able to start with any given Agent Login, and be able to work out the path of the folders between the Switch and the folder in which the Agent Login lives.
In abstract, that might look like: /SWITCH/AGENT LOGINS/FOLDER 1/FOLDER 2/FOLDER 3/123456
Where 123456 is the Agent Login.
I have an idea this information is located in some relationship between CFG_FOLDER and CFG_OBJ_FOLDER, but I haven’t been able to work out the relationship, so of course I could be entirely wrong about that.
Thanks again for the code above, it will definitely prove useful to me in other situations.