Access file content as stream from a client js method

オフライン
  Hi, I have a json file in Vault that is linked to a property of an Item. How can I access json file stream from client side JS onload-event method ? I have tried with fetchFileProperty, which prompts user for download of the json file, but what I need is to access its file stream in js method. Any ideas, please do share. Thank you so much myItem.fetchFileProperty("jsonFile", "", 0)    
Parents
  • Hi ke, If you would like to use the Aras RESTful API to get the contents of a vaulted file, you can do so by adding "$value" to the end of a query that returns a file item. The following sample query shows how to get the contents of a file related to a Document:
    localhost/.../Document File('64B4841FBB42421890FB998CAE615C62')/related_id/$value
    The blog post Angela provided will give you all the other details you need to get started. If you need to use the JavaScript IOM to get the file contents, let me know and I'll see if I can hunt down that answer. Eli
    Eli Donahue Aras Labs Software Engineer
Reply
  • Hi ke, If you would like to use the Aras RESTful API to get the contents of a vaulted file, you can do so by adding "$value" to the end of a query that returns a file item. The following sample query shows how to get the contents of a file related to a Document:
    localhost/.../Document File('64B4841FBB42421890FB998CAE615C62')/related_id/$value
    The blog post Angela provided will give you all the other details you need to get started. If you need to use the JavaScript IOM to get the file contents, let me know and I'll see if I can hunt down that answer. Eli
    Eli Donahue Aras Labs Software Engineer
Children
No Data