Skip to main content
Solved

updateCardField dont work


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

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

2 replies

genietim
Forum|alt.badge.img+12
  • Pipefy 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

@genietim thanks for helping me!

It works fine!


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