Skip to main content
New Participant
Jan 23, 2024 8:19 PM UTC
Solved

Get the internal ID from the opaque URI for a document

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-

mikes0011
mikes0011Answer
Brainy
Jan 24, 2024 1:26 PM UTC

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

The Expression Guru

7 replies

stefanhelzle0001
Brainy
Jan 23, 2024 8:34 PM UTC

What do you want to achieve?

mikes0011
Brainy
Jan 23, 2024 8:41 PM UTC

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.

The Expression Guru
New Participant
Jan 24, 2024 3:18 AM UTC

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
Brainy
Jan 24, 2024 7:11 AM UTC

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