Skip to main content
Participating Frequently
February 2, 2024
Question

How Make WebSocket Connection With An API ?

  • February 2, 2024
  • 5 replies
  • 2 views

I have API which returns me some responses based on parameters but the important point is when my database has any change then my Appian local variable which has API data also needs to get updated automatically, which means simply a WebSocket type connection with an API

5 replies

stefanhelzle0001
Brainy
February 2, 2024

Appian does not support this kind of integration. But you could refresh data in an interface on an interval.

harshitb6843
February 2, 2024

There is a way, but it comes at the cost of performance.

If you know the tables that will be updated, then you can add a refreshVariable, make it refresh in 30 seconds and query data from the database, compare it with the older data on the interface and if the data is changed, you can fire your integration to get the refreshed data. 

prakhars0731
February 2, 2024

If I am thinking in write direction I think you are trying to make web based application but issue is that that create lot of slowness

Participating Frequently
February 6, 2024

Yes, Exactly i Have an API that gives me data of other Env. but I want that as data gets changed In that env. then my Appian Interface should Update.

prakhars0731
February 6, 2024

for that you schedule your process in such a way being is sync with outside env so that once external env has done it changes than you process should start make changes in Ui or if you want user interference in that than you should update data only once your eternal env has made changes.