All Collections
APIs, Security and IT Management
APIs
How to obtain the ID of a parent card from a linked child card
How to obtain the ID of a parent card from a linked child card
G
Written by Guilherme Leme
Updated over a week ago

🔐 Available on all plans

🎯 For those who are searching for the ID of the parent card that generated the child card currently in use

⏩ Content Summary:

To obtain the ID of the parent card, you will need to:

  • Find the ID of the child card.

  • Make queries to discover the ID of the parent card.

You can identify the ID number of the parent card using Pipefy’s API (GraphiQL). In the API, you can make queries and mutations (actions) in your processes.Learn how to use Pipefy’s API.

🔔 Attention: To use the API, you must have administrator permissions in your organization’s Pipefy environment. Learn more about roles and permissions in Pipefy.

Inside Pipefy

First, find the ID of the child card you are working with.

To do this, go to the pipe that contains that child card. Next, click the card of your preference.

Copy the numbers that appear after the URL - this is the card’s ID number.

Save this number and keep it nearby in the following steps.

In the API

Access the API and follow the steps below:

  1. On the left side of your screen, paste the following query, replacing the ID of the parent card by the code you identified in the first step.

    {
    card(id: ID of the parent card) {
    title
    parent_relations {
    id
    name
    cards {
    id
    }
    source_type
    }
    }
    }

  2. The query must look like the one below:

  3. Click the caret (or Play) button to run the query and get the parent card’s information.

  4. On the right side, you will see the parent card’s information:

  5. Find the ID number under cards - this is the ID code.

That’s it! Now you have the ID of the parent card that generated the child card.

Related Content

🎓 Learn how to do more with less with free Pipefy Academy courses!

🌎 Join the Pipefy Community to ask questions, share ideas, stay tuned, and showcase your knowledge with professionals from around the globe!

Did this answer your question?