How do I display an image saved in an Appian folder

I've attempted multiple times to display images saved in our branding folder in Appian, but each time I receive an error that the image does not exist.  I've tried using the doc 'name', 'ID', and the UUID.  Does anyone have any tips?  I've even tried saving the docs to the knowledge center instead of a regular folder.  It would be helpful to see an example of coding.  I'm not even able to display our logo.

Thanks for any help!

  Discussion posts and replies are publicly visible

Parents
  • I'd suggest using a constant to reference your document. Then, it will be easier to use it within any interface on any environment. For example, suppose I upload a document called My Logo. Then, I'd create a constant to point to it like this:

    Then, you can reference it in any interface using the a!documentImage() function:

    a!imageField(
      images: a!documentImage(
        document: cons!PDL_DOC_MY_LOGO
      )
    )

    If that doesn't work, can you provide more information about what you have tried?

Reply
  • I'd suggest using a constant to reference your document. Then, it will be easier to use it within any interface on any environment. For example, suppose I upload a document called My Logo. Then, I'd create a constant to point to it like this:

    Then, you can reference it in any interface using the a!documentImage() function:

    a!imageField(
      images: a!documentImage(
        document: cons!PDL_DOC_MY_LOGO
      )
    )

    If that doesn't work, can you provide more information about what you have tried?

Children