0

I would like to add attachment to Google calendar event with integromat "Make an API call" module. Attachment uploaded previously to Google drive.
I dont know how to setup the "MAKE an API call" module. See screenshot below.

make an api call module integromat

I tried to understand the integromat help for this, but it was a little bit difficult for me. If somebody have a scenario for this please help me.

Thanks for any help!

Sancho79
  • 15
  • 2

1 Answers1

0

I am pretty sure that Google Calendar API doesn't support external files as part of the attachment, I might be wrong though. The current working scenario, that I shared will be able to add a Google Drive File as part of the attachment. Please refer the screenshot,

enter image description here

You will need to use following,

URL: /v3/calendars/{{CALENDAR_ID}}/events/{{EVENT_ID}}?supportsAttachments=true

Method: PATCH

Body :

{
    "attachments": [{
        "fileId" : "",
        "fileUrl": "https://drive.google.com/file/d/1yyVVQxgwb7wF6RckN_1KoGtSmikjk2MR/view?usp=sharing",
        "mimeType": "image/png",
        "title": "TestImage.png"
    }]
}

You can refer the document here : https://developers.google.com/calendar/api/v3/reference/events/patch

Runcorn
  • 5,144
  • 5
  • 34
  • 52