Skip to main content
romiev8957
September 25, 2023
Question

Documents & JSON

  • September 25, 2023
  • 11 replies
  • 0 views

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
    September 25, 2023

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

    mikes0011
    Brainy
    September 25, 2023

    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
    September 25, 2023

    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
    September 25, 2023

    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
    September 26, 2023

    Thank you all!