Skip to main content
June 2, 2023
Question

Is there any way to pass the document from Appian to JavaScript in the component plugin

  • June 2, 2023
  • 3 replies
  • 0 views

Hi Team,

We are developing a component plugin to which a json file to be passed from Appian SAIL Interface to Javascript in plugin.

Is there any way to pass the document from Appian to JavaScript in the component plugin?

when we try to pass the document from document url to component plugin it asks authentication.

    3 replies

    stefanhelzle0001
    June 2, 2023

    Did you check out the option to call server side logic? That should you allow to at least get the content of that JSON file.

    https://docs.appian.com/suite/help/23.2/reference-js-api.html#appian.component.invokeclientapi(connectedsystem,-friendlyname,-parameters)

    June 9, 2023

    Yes, Currently we are reading the text in Json file and passing as text format. Now we need to pass the PDF file to Component plugin , Is it possible to do that?

    stefanhelzle0001
    June 9, 2023

    I am not sure about the best way to do ... what exactly? What is your overall user story?

    You can pass the download URL returned by the document() function.