Any script API to help convert between file paths

For file system paths which look like this;

/telligent-evolution-components-attachments/13/956/00/00/00/14/82/82/my-test-file.txt

But the CFS URL looks like this;

/telligent-evolution-components-attachments/13-956-00-00-00-14-82-82/my_2D00_test_2D00_file.txt

Is there a script (or C#) API to convert between the two formats?

Parents Reply Children
  • Are you able to view support cases Patrick? It's related to this one; 1328285.

    But, we're basically trying to get from a the file path in Azure blob storage, to find the actual piece of Verint content that the file is in, so we're not interacting with the CFS directly.. just reading where things are & trying to find content.

  • By going into Azure and doing something that is not a community API is an unsupported action.   That being said what you want to do isn't entirely possible as files do not necessarily know where they live, they are just referenced by content.

  • Thanks for the reply, yeah, I had real trouble back-tracking from the Azure blob (of the attachment) to the Verint content, but I believe I've got a workable solution.

    It basically relies on;

    1. Looking at the time the blob is written to the Azure storage account

    2. Doing custom search of Solr for any Verint content updated for the time from (1) in a window of 5-10 minutes either side

    3. Loop through the Solr results looking in 'rawcontent' for the blob path.. or if the content is a 'file' use the Media API to look at the file URL to check for a matching CFS URL (which is where I wanted the converter in my OP). I had to look at 'rawcontent' in a loop due to that field not being indexed in Solr, and therefore isn't queryable. 

    This absolutely wasn't straight forward, and I realise it's an 'unsupported action', but it was a needs-must situation (see support case for more details).

    It'd have been great if this was achievable with the OOTB APIs, but unfortunately wasn't. The main thing the Verint API lacked was any way to get a feed of all updated content between 2 times, which would have prevented me needing to do a custom call to Solr.

  • Dates are not necessarily going to coordinate. For example, you can embed a file in a blog created today, and reference that file in many posts way into the future.  I am still not sure what you are trying to actually accomplish.