When you are creating a new Folio record, Entity or Contact there might be a table that you might need to fill in
The way this works with the Folio API is that you provide a seperate object in the field response for each row and field.
So lets say I have a table with two fields, Quarter and Milestone Met?. To this example simple ive made both of them short texts. Below is the table that I am wanting to have imported into my new Folio record
Quarter
Milestone Met?
Q1
Yes
Q2
Yes
Q3
No
Q4
No
So to achieve this using the API my fieldResponses would look like below
The change from a normal fieldResponse object is the rowIndex, in this you just need to put as an integer the row number you are wanting the field response to go against. This is 0 indexed so you would need to do 0 for the 1st row, 1 for the 2nd row and so on.
So with my example my entire mutation would look like this
mutation { createFolio( input: { folioTemplateId: "MDBDb250cmFjdFRlbXBsYXRlLTUxMg", # The ID of my Template fieldResponses: [ {fieldId: "MDBGaWVsZC0xNTM0Mg", text: "This is the title!"}, # The Folio Title {fieldId: "MDBGaWVsZC0xNTM0Mw", userIds: ["MDBVc2VyLTExMw"]}, # The Person Responsible # Row 1 {fieldId: "MDBGaWVsZC0xNTM0NA", text: "Q1", rowIndex: 0}, {fieldId: "MDBGaWVsZC0xNTMzNA", text: "Yes", rowIndex: 0}, # Row 2 {fieldId: "MDBGaWVsZC0xNTM0NA", text: "Q2", rowIndex: 1}, {fieldId: "MDBGaWVsZC0xNTMzNA", text: "Yes", rowIndex: 1}, # Row 3 {fieldId: "MDBGaWVsZC0xNTM0NA", text: "Q3", rowIndex: 2}, {fieldId: "MDBGaWVsZC0xNTMzNA", text: "No", rowIndex: 2}, # Row 4 {fieldId: "MDBGaWVsZC0xNTM0NA", text: "Q4", rowIndex: 3}, {fieldId: "MDBGaWVsZC0xNTMzNA", text: "No", rowIndex: 3}, ] } ) { data { id key title } errors { message extensions { fieldName subFieldName rowIndex } } } }