Skip to main content
New Participant
Jun 2, 2023 3:08 PM UTC
Question

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

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
    Brainy
    Jun 2, 2023 3:13 PM UTC

    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)

    New Participant
    Jun 9, 2023 11:26 AM UTC

    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
    Brainy
    Jun 9, 2023 11:38 AM UTC

    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.