Skip to main content
Solved

Graphql - Add Card Attachment


rogerpitigliani

Hello!

 

Is it possible add attachments to specific Card using Graphql?

I can update Card… add comments.. but I could not add attachments.. :(

If possible, could you give an example…

 

Thanks...

 

 

Best answer by Lucas Democh

@rogerpitigliani

I am an expert in custom integrations and a Pipefy partner.

 

I confess that I've never done an integration to fill in attachments, but I'm going to do some tests to evaluate possibilities and bring news here.

 

Custom integrations are services provided by Pipefy's specialist team or by partners such as Bowe. They are charged separately.

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

5 replies

julia-pinheiro
Pipefy Staff
Forum|alt.badge.img+1

Hi Roger,

Unfortunally, it’s not possible to add attachments in a card using GraphiQl only by custom integrations.


rogerpitigliani
  • Author
  • Regular Participant
  • 2 replies
  • July 22, 2022

Ok Julia,

Thanks for replying..

How custom integration works? Is it a paid service?

I’m integrationg our Omnichannel (CallSys) system with Pipefy…

Regards..

 

 


Lucas Democh
Forum|alt.badge.img+15
  • Pipefy Legend
  • 396 replies
  • Answer
  • July 28, 2022

@rogerpitigliani

I am an expert in custom integrations and a Pipefy partner.

 

I confess that I've never done an integration to fill in attachments, but I'm going to do some tests to evaluate possibilities and bring news here.

 

Custom integrations are services provided by Pipefy's specialist team or by partners such as Bowe. They are charged separately.


genietim
Forum|alt.badge.img+12
  • Pipefy Legend
  • 412 replies
  • August 2, 2022

Yes, it is possible with GraphQL.

There are a few questions with examples already here in the Community (e.g.:

 

), though to summarize, the easiest way is to either follow the documentation (https://developers.pipefy.com/docs/how-to-upload-attachments-and-attach-to-a-card-record) or the following list:

Step 1: Upload

The upload works as described on this page:

First, request the URL to upload to:

mutation {
  createPresignedUrl(input: { organizationId: 123, fileName: "MyDocument.pdf" }){
    clientMutationId
    url
  }
}

Then, do the upload:

curl --request PUT
--url 'https://pipefy-production.s3-sa-east-1.amazonaws.com/orgs/ce63-a26b-412f-9d27-3a5776e16e/uploads/45da74d3-0e92-4e1c-a04e-2acc97169a3/SampleFile.pdf?...Signature=fa76e8bf28f88d8ceec1df8219912e103ad15f5ab4668f0fc9cea69109991aa'
--header 'Content-Type: application/pdf'
--data 'BINARY_DATA'

curl -v --upload-file SampleFile.pdf 'https://pipefy-production.s3-sa-east-1.amazonaws.com/orgs/ce63-a26b-412f-9d27-3a5776e16e/uploads/45da74d3-0e92-4e1c-a04e-2acc97169a3/SampleFile.pdf?...Signature=fa76e8bf28f88d8ceec1df8219912e103ad15f5ab4668f0fc9cea69109991aa'

Then, assign the file to a card field:

mutation {
  updateCardField(input: {card_id: 123, field_id: "attachment_field", new_value: ["orgs/8bd9ce63-a26b-412f-9d27-3a5776e3e16e/uploads/45da74d5-0e92-4e1c-a04e-26acc97169a3/SampleFile.pdf"]}) {
    clientMutationId
    success
  }
}

Feel free to ask more questions if it is not clear yet or if I misunderstood your request.


rogerpitigliani
  • Author
  • Regular Participant
  • 2 replies
  • August 2, 2022

Hello @genietim 

Great… I’ll try ..

Thanks..

 

 


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