Skip to main content
Inspiring
April 30, 2021
Question

Automatically Run a HTML Script

  • April 30, 2021
  • 4 replies
  • 0 views

I'm not sure if this is possible, but I'm trying to run a HTML script that creates a chart and then exports it as an image in a process model. I'd like to then use that image (and other data) to create a PDF report using the Fill PDF smart service. However, currently for the image to export the HTML file has to be downloaded and opened. Is there a way to have it run automatically in the process model?

I also tried the PDF from HTML smart service but that doesn't seem to support charts.

Here is the HTML code I'm using to test this process. I'm pretty new to working with HTML so if anyone has suggestions on that front, I'm open to that too.





  


Thanks!

    4 replies

    stefanhelzle0001
    Brainy
    May 1, 2021

    The only way to do things like this is to create a custom component plugin. This allows you to do almost any HTML & JavaScript trickery you can imagine.

    jackf0001Author
    Inspiring
    May 4, 2021

    I was afraid of that. Do you have any suggestions for how to get started creating a plug-in or resources I could look at to learn how to do that? Thanks.

    stefanhelzle0001
    Brainy
    May 4, 2021

    There is documentation available. Plugins in the app market contain their source code and can be used to check how things work.

    docs.appian.com/.../component-plugins.html

    For local development, check this: www.npmjs.com/.../sail-tools