How can I retrieve a field's dynamic content using graphql ?
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!
Page 1 / 1
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 } } } }
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
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.
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
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 } } } }
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?
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.