Solved

updateCardField dont work

  • 11 October 2023
  • 2 replies
  • 77 views

Userlevel 1
Badge

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”


 

 

icon

Best answer by genietim 11 October 2023, 08:37

View original

2 replies

Userlevel 7
Badge +12

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”.

Userlevel 1
Badge

@genietim thanks for helping me!

It works fine!

Reply