Skip to main content
January 23, 2024
Solved

Get the internal ID from the opaque URI for a document

  • January 23, 2024
  • 7 replies
  • 0 views

Is there a method in the Java API that returns the internal ID of a document if you only have the opaque URI?

Here is a link to the Java API ContentService interface that returns the opaque URI, but I need to the do reverse: https://docs.appian.com/suite/help/21.3/api/com/appiancorp/suiteapi/content/ContentService.html#getOpaqueContentUri-long-

Best answer by mikes0011

Doesn't the Rich Text Editor have its own special save output for image doc IDs?

7 replies

stefanhelzle0001
January 23, 2024

What do you want to achieve?

mikes0011
Brainy
January 23, 2024

I presume that such a back-conversion is intentionally made opaque and closed-source by Appian for security reasons / etc.  Therefore this sort of thing wouldn't be supported (even if there were any back-end workarounds, and there might not actually be any).  As Stefan said, if you could share your use case that might help.

January 24, 2024

I am passing the HTML from a rich text editor into a custom plugin. The plugin needs access to the images, but the only reference is the opaque URI. The Rich Text Editor used to provide the doc ID which allowed me to get the internal file path (ContentService.getInternalFilename) but the Rich Text Editor has now been updated to use opaque URIs, so I need a different strategy.

stefanhelzle0001
January 24, 2024

I suggest to contact Appian to get support for such an endeavour.