Skip to main content
July 20, 2023
Question

Calling APIs created in Appian on the load of Interface

  • July 20, 2023
  • 20 replies
  • 0 views

Hi Team,

I have created a WEB API in Appian only  which is used to Write data to tables.
I want to use this WEB API on Interface load. 
How can we do that ?

Regards,
Abdus Samad

20 replies

stefanhelzle0001
July 20, 2023

In Appian, on a UI, any data modification can only be the direct result of a user interaction. While there are some hacks to work around this, I strongly suggest to stay with this design paradigm.

docs.appian.com/.../functions-side-effects.html

July 20, 2023

didn't get you on this .

stefanhelzle0001
July 20, 2023

You cannot modify data in the database on interface load.

January 22, 2025

I have a similar situation where I want to load data automatically when the user opens the human task on the interface page load, let's say. This way, the data will be updated and accurate from external APIs. The reason for this is that the data changes frequently, and the user needs to see the most current information without having to refresh it manually. So how we can achieve this??
stefanhelzle0001
January 22, 2025

Well, loading data to present it to the user is the normal thing. Just call that API and store the result in a local variable.

Do you see any obstacles when implementing this?

January 22, 2025

How to call the API when the user clicks on their task and the interface is loaded??