Skip to main content
Solved

Search cards by a customized field

  • Aug 28, 2020 2:22 PM UTC
  • 1 reply
  • 583 views

keylamacharet

Hello!

I´m new on the community and I want to know if I can search cards via API using my customized field.

I added a “Document Number” field, so I need to get the lead information based on the document number the person is going to inform.

 

Is that possible?

 

Thanks,

 

Keyla

Best answer by Luan de Araujo

Hi Keyla

 

How are you doing today?

 

Unfortunately, filtering data inside API is not possible. You’ll need to get all card’s data and then filter it using your application code.

 

You can get all card’s data using the following API syntax:

{

  card(id: <CARD ID HERE>) {

    title

    assignees {

      id

    }

    comments {

      text

    }

    comments_count

    current_phase {

      name

    }

    done

    due_date

    fields {

      name

      value

    }

    labels {

      name

    }

    phases_history {

      phase {

      name

    }

      firstTimeIn

      lastTimeOut

    }

    url

  }

}

 

If there’s any additional question, don’t hesitate to contact us :grinning:  

View original

1 reply

Luan de Araujo
Pipefy Staff
Forum|alt.badge.img

Hi Keyla

 

How are you doing today?

 

Unfortunately, filtering data inside API is not possible. You’ll need to get all card’s data and then filter it using your application code.

 

You can get all card’s data using the following API syntax:

{

  card(id: <CARD ID HERE>) {

    title

    assignees {

      id

    }

    comments {

      text

    }

    comments_count

    current_phase {

      name

    }

    done

    due_date

    fields {

      name

      value

    }

    labels {

      name

    }

    phases_history {

      phase {

      name

    }

      firstTimeIn

      lastTimeOut

    }

    url

  }

}

 

If there’s any additional question, don’t hesitate to contact us :grinning: