Skip to main content
romiev8957
Known Participant
Sep 25, 2023 5:25 PM UTC
Question

Documents & JSON

Hi,


Does anyone know how to convert a document stored in appian to an url? to use it as a dynamic link in a json.

Thanks!

    11 replies

    romiev8957
    Known Participant
    Sep 25, 2023 5:28 PM UTC

    It's to change the "Video" field for an url instead of the document ID

    mikes0011
    Brainy
    Sep 25, 2023 6:52 PM UTC

    Can you tell us a bit more about your use case?  I'm unclear what approach you're even going for here.  If, for instance, you want to allow a user to download the file from an Appian interface, you'd use the Document ID in a Document Download Link (preferably in a Rich Text Display), wherein they'd be able to click that link and download it.  Appian handles the URL creation involved, ther isn't really a way to manually construct such a URL directly.

    The Expression Guru
    romiev8957
    Known Participant
    Sep 25, 2023 7:10 PM UTC

    and there's any way you can save that download url? In case anyone else wants to download the document just with an url, not using the document download link. 

    mikes0011
    Brainy
    Sep 25, 2023 7:17 PM UTC

    Downloads are only available to a logged-in user viewing an active interface.  There's no supported way to grab an externally-usable URL for a document download, as Appian requires that downloads are only accessible by users in the proper security roles/groups.

    The Expression Guru
    romiev8957
    Known Participant
    Sep 26, 2023 10:42 PM UTC

    Thank you all!