Hello,
I'm trying to figure out how to integrate an external web site with Appian. I have a JAVA war file that contains JavaScript files. The war was produced by another organization, and I expect to have occasional updates. I have the war hosted and running on its own server. What I would like to do is push a button on an Appian form that launches the web page created in the war. The user then selects different options in the popup and hits submit. The external web site produces an XML string and sends it back to Appian. Appian then displays the processed XML on the form. Later, when the Appian form is completed and submitted, Appian saves the XML to the DB. I've tried using Web Content Field. It displays the button and launches the external web page. I have no idea how to send the XML back to Appian. Web Content Fields don't retrieve data as far as I can tell. I also thought about setting up an Appian Web API for the external site to call and send the data, but I'm not sure how to tell the Web API which form the XML should go to.
Next, I tried setting up an Appian Integration and Connected System. It seems like the web site has to already be running in order for data to be passed back. Maybe I can try a combination of Web Content field, Integration and Connected system?
I even tried creating my own component plugin but couldn't get the developer token to work and we are unable to provide our production URL and component for inspection to get a production token.
I appreciate any guidance you can provide.
Discussion posts and replies are publicly visible
joeys987 said:I also thought about setting up an Appian Web API for the external site to call and send the data, but I'm not sure how to tell the Web API which form the XML should go to.
This sounds like a reasonable idea. Can you explain what you mean with the following?
joeys987 said:tell the Web API which form the XML should go to
An API in Appian can just take any XML you throw at it.
Thanks for the quick reply. Once the Appian Web API receives the XML string from the external website, how would the XML be displayed on the form that called the external website? As far as I know, the Appian form does not have an id that can be sent to the external website. The form receives an id for the DB when the user submits the Appian form, but that would be too late to show the XML on the form. We'll have multiple users working on the Appian app concurrently and we'll have to send the correct XML to correct user and form.
I am not sure I fully understand this user interaction. Can you help me out?
In that web component, you call some URL that could include a unique identifier as a parameter.
These are docs I've been using for the web component. It doesn't mention sending unique ids. Web Content Component - Appian 24.1The URL I'm using is something like https://address,com/test.html
The test.html contains the logic for the button that launches the external website. How would I pass in a unique id? How would the Web API on the Appian side know which form create the id?
When you add a URL parameter, you should be able to read that in your external web app.
address.com/test.html