Skip to main content
pavelgabrielm6540
September 7, 2022
Question

Web API Error

  • September 7, 2022
  • 3 replies
  • 0 views

Hi, I am trying to use a Web API to write to my database table but what I want to do is get the record from a public Web API and use that record in my Web API that writes to my table.

If I do it this way it works fine.

But if I use an expression rule it throws me a status 500 error.

Could you help me to understand please, I appreciate it.

3 replies

peter.lewis
Employee
September 7, 2022

Are you providing the correct inputs to this rule? Can you share the full expression for where you are calling this?

Also a brief terminology suggestion:

  • A Web API is an endpoint that is exposed from Appian that another system calls
  • An Integration is a request made from Appian to an external system

Based on your screenshots, you're actually using an Integration object, not a Web API. I mention that because the troubleshooting is different for each of these object types, so it's important to clarify where you're having the issue [emoticon:c4563cd7d5574777a71c318021cbbcc8]

pavelgabrielm6540
September 7, 2022

Sorry for the confusion, actually I am using an integration with POST method, the expression rule calls another integration which is where I query data from an external Web API.

This is the integration with GET method

peter.lewis
Employee
September 8, 2022

Ok so it appears to be working in the integration designer - how are you calling it elsewhere in your app? Are you using it in an expression / what inputs are you providing? What troubleshooting steps did you try?