How can i get the path of a document uploaded in appian based on document id? Th

How can i get the path of a document uploaded in appian based on document id? The idea here is save the document id of an image to db and later on display to a form using IMAGE field?...

OriginalPostID-60340

OriginalPostID-60340

  Discussion posts and replies are publicly visible

Parents
  • Hi Jessica, since you are planning on saving the image ID to the database, I would highly recommend to use the UUID when storing in the database, because UUID is the only unique identified that stays the same when you export the Application from one environment to another. You cannot rely on ID when migrating Application over systems.

    You can do the following:
    1) Create an Application with the image (Document), if you don't already have an Application including this image.
    2) Export the Application, and grab the UUID by reviewing the LOG file. You can use this UUID to store in the DB.
    3) Now if your process get the Document back by using expression getcontentdetailsbyuuid("<image-document-uuid>").
    4) You can then use the Document directly in the image forument component.

    Please let me know if you have questions. Good luck!
Reply
  • Hi Jessica, since you are planning on saving the image ID to the database, I would highly recommend to use the UUID when storing in the database, because UUID is the only unique identified that stays the same when you export the Application from one environment to another. You cannot rely on ID when migrating Application over systems.

    You can do the following:
    1) Create an Application with the image (Document), if you don't already have an Application including this image.
    2) Export the Application, and grab the UUID by reviewing the LOG file. You can use this UUID to store in the DB.
    3) Now if your process get the Document back by using expression getcontentdetailsbyuuid("<image-document-uuid>").
    4) You can then use the Document directly in the image forument component.

    Please let me know if you have questions. Good luck!
Children
No Data