Skip to main content
Solved

updateCardField dont work

  • October 10, 2023
  • 2 replies
  • 218 views

alejandroparra
Forum|alt.badge.img

Hi, im trying tu create a card relation

 

mutation {

createCardRelation(input: {

parentId : 8050[my card parent id],

childId : 6552[mi card child id],

sourceType : "PipeRelation",

sourceId : "some[i donr not what put here!]"

}) {

clientMutationId

}

}



If i setup the sourceId as my organization id then i get “"Validation failed: Source Source PipeRelation is not connected to repo”


 

 

Best answer by genietim

Yes, the error already shows you that what you put in “sourceId” is incorrect.

In your case, you need to figure out the id of the pipe relation:

you can query all the child pipe relations of one pipe like this:

query {
pipe(id: [yourPipeId]) {
childrenRelations {
id, name
}
}
}

use the resulting id of the connection you are interested in for the “sourceId”.

2 replies

genietim
Forum|alt.badge.img+12
  • Legend
  • 412 replies
  • Answer
  • October 11, 2023

Yes, the error already shows you that what you put in “sourceId” is incorrect.

In your case, you need to figure out the id of the pipe relation:

you can query all the child pipe relations of one pipe like this:

query {
pipe(id: [yourPipeId]) {
childrenRelations {
id, name
}
}
}

use the resulting id of the connection you are interested in for the “sourceId”.


alejandroparra
Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • October 11, 2023

@genietim thanks for helping me!

It works fine!