Skip to main content
Solved

How can I retrieve a field's dynamic content using graphql ?


enrique.herbella

Hello

I am looking to retrieve a field's dynamic content using graphql.

I have been using CardField and I can retrieve some information such as the name and the description. However I have been unable to retrieve the entire dynamic content that has been set in the field.

Could you please provide some guidance?
Thanks!

Best answer by Leandro Almeida

Hi @enrique.herbella 


Maybe this query will help you to get the data for this field: 

query
{
  card (id: insert_card_id)
  {
    child_relations
    {
      cards
      {
        id
        title
      }
      id
      name
      pipe
      {
        id
        name
      }
    }
  }
}

 

View original
Did this topic help you find an answer to your question?

10 replies

Forum|alt.badge.img+11

Hi

I’m not sure if this is exactly what you want but the ‘options’ below will show the options of the checklist, radio or select fields

{
  card(id: xxxxxxx) {
    fields {
      field {
        options
        id
        label
      }
    }
  }
}
 


enrique.herbella

Hi @vicente-lemes 

I am trying to retrieve the content that is inserted in the WYSIWYG labeled “Dynamic Content” in the pipefy CMS.
 

I assume that these field types would be “short_text”?
 

For example:

Thanks!

Enrique


Leandro Almeida
Pipefy Staff
Forum|alt.badge.img+7

Hi @enrique.herbella

I am trying to understand better. This information contained in a dynamic field, is it on a specific Card? Or is it pre-filled content in a form? 

Are there fields connected to other Pipes and Databases, which pull this information into this dynamic field? 

I look forward to hearing from you.


enrique.herbella

Hi @leandro-almeida 

Yes the information contained in the screenshot is on a specific card. 

I am trying to retrieve the complete content in the WYSIWYG… either before or after it’s dynamic fields have been rendered. Is there a way to do that?

Thanks!
Enrique

 


Leandro Almeida
Pipefy Staff
Forum|alt.badge.img+7

Hi @enrique.herbella 


Maybe this query will help you to get the data for this field: 

query
{
  card (id: insert_card_id)
  {
    child_relations
    {
      cards
      {
        id
        title
      }
      id
      name
      pipe
      {
        id
        name
      }
    }
  }
}

 


enrique.herbella

Hi @leandro-almeida 

I have tried your query but unfortunatly the information it returns is incomplete.

Is there a way to retrieve the entire content that has been inserted in the WYSIWYG for a given field, either before or after it’s rendering?

 


Leandro Almeida
Pipefy Staff
Forum|alt.badge.img+7

Hi @enrique.herbella 

I apologize for the delay. I tried several ways and it didn't work. 

My friend Terry very kindly helped me and I think now I got the right query: 

{
  phase(id:xxxxxxxxx){
    name
    fields{
      id
      label
      description
    }
  }
}

With her I got the fixed information that is in this phase: 

Results: 


However, this query will only get the fixed information that is written in the dynamic field, everything that is variable (dynamic fields from other previous phases) will be in other phases. 

Do a test with it. 


Ezequiel Souza
Forum|alt.badge.img+14

👏👏👏👏👏


Ezequiel Souza
Forum|alt.badge.img+14

👏👏👏👏👏👏


marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • October 5, 2023

Very good!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings