Skip to main content
harshs684550
October 13, 2023
Question

Error Handling for Multiple parallel Api calls in Interface

  • October 13, 2023
  • 1 reply
  • 0 views

Hi Guys,

What is the most effective way to do error handling for multiple parallel API calls while loading the interface.

Currently My code look something like this.

a!localVariables(
  local!users:rule!APN_GetUsers().result.body,
  local!items:rule!APN_GetItems(id).result.body,
  local!info:rule!APN_GetBasicInfo(id).result.body,
  local!summary:rule!APN_GetSummary().result.body,
  {}
)

If one of the API fails I will show some error in card. But how to effectively do this ? I need to this in multiple interfaces.

[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]

1 reply

stefanhelzle0001
Brainy
October 13, 2023

That depends on the error. A technical error is managed by Appian and this cannot be customized.

Then, I am not sure why parallel calls would be any different to just a single call in terms of return value validation.