Solved

Trouble with error handling on Card Move through API

  • 17 February 2022
  • 1 reply
  • 292 views

Userlevel 1

Hello everyone,

I am developing a simple application that will be integrated with Pipefy, and I will need to allow cards to be moved between phases with calls to the GraphQL API. The issue I am having is that there are certain fields that need to be updated before a card can move to a particular phase. When those fields are not set and the API call is made, the error that returns is very general: “Card could not be moved to phase id: <ID>”

Is there anyway to make this error message more specific so that I could display to the user why it is failing? I thought I was able to do it when experimenting through Postman but now I cannot seem to find the call I made

Any help on this would be greatly appreciated

Thanks!

icon

Best answer by genietim 18 February 2022, 09:47

View original

1 reply

Userlevel 7
Badge +12

As the error is always due to fields that were not filled in, you can simply query the fields on the current phase of the card and check whether they are required or not, and whether they are filled or not. That way, you can determine the erronous fields yourself.

Reply