← Google Calendar + Salesforce integrations

Create Attachment with Salesforce API on New Ended Event from Google Calendar API

Pipedream makes it easy to connect APIs for Salesforce, Google Calendar and 3,000+ other apps remarkably fast.

Trigger workflow on
New Ended Event from the Google Calendar API
Next, do this
Create Attachment with the Salesforce API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Google Calendar trigger and Salesforce action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Ended Event trigger
    1. Connect your Google Calendar account
    2. Configure timer
    3. Optional- Select a Calendar ID
  3. Configure the Create Attachment action
    1. Connect your Salesforce account
    2. Configure docsInfo
    3. Configure File Name
    4. Configure File Path, URL or Content
    5. Configure Content Type
    6. Configure Parent ID
    7. Optional- Configure Description
    8. Optional- Configure Private
    9. Optional- Select a Owner ID
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a Google Calendar event ends
Version:0.1.11
Key:google_calendar-event-ended

Google Calendar Overview

The Google Calendar API lets you dip into the powerhouse of scheduling, allowing for the reading, creation, and manipulation of events and calendars directly from your applications. Through Pipedream, you can seamlessly integrate Google Calendar into a myriad of workflows, automating event management, syncing with other services, setting up custom reminders, or even collating data for reporting. The key here is to streamline your calendar-related processes, ensuring that your time management is as efficient and automated as possible.

Trigger Code

import common from "../common/common.mjs"; import sampleEmit from "./test-event.mjs"; export default { ...common, key: "google_calendar-event-ended", name: "New Ended Event", description: "Emit new event when a Google Calendar event ends", version: "0.1.11", type: "source", dedupe: "unique", props: { ...common.props, calendarId: { propDefinition: [ common.props.googleCalendar, "calendarId", ], }, }, methods: { ...common.methods, getConfig({ intervalMs, now, }) { const timeMin = new Date(now.getTime() - intervalMs).toISOString(); const timeMax = new Date(now.getTime()).toISOString(); return { calendarId: this.calendarId, timeMax, timeMin, singleEvents: true, orderBy: this.orderBy, }; }, isRelevant(event, { intervalMs, now, }) { const eventEnd = event?.end?.dateTime; const end = new Date(eventEnd); const msFromEnd = now.getTime() - end.getTime(); return eventEnd && msFromEnd > 0 && msFromEnd < intervalMs; }, }, sampleEmit, }; 

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Google CalendargoogleCalendarappThis component uses the Google Calendar app.
timer$.interface.timer
Calendar IDcalendarIdstringSelect a value from the drop down menu.

Trigger Authentication

Google Calendar uses OAuth authentication. When you connect your Google Calendar account, Pipedream will open a popup window where you can sign into Google Calendar and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Calendar API.

Pipedream requests the following authorization scopes when you connect your account:

https://www.googleapis.com/auth/calendar.eventshttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.settings.readonlyemailprofile

About Google Calendar

With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.

Action

Description:Creates an Attachment on a parent object. [See the documentation](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_attachment.htm)
Version:0.5.4
Key:salesforce_rest_api-create-attachment

Salesforce Overview

The Salesforce (REST API) provides a powerful platform for creating and managing customer relationships with a wide array of features like data manipulation, querying, and complex automation. With Pipedream's serverless execution, you can create workflows that automate your sales processes, sync data with other platforms, enhance customer engagement, and trigger actions based on specific events. Dive into Salesforce data, streamline lead management, track customer interactions, and push or pull data to or from Salesforce seamlessly.

Action Code

import common, { getProps } from "../common/base-create-update.mjs"; import attachment from "../../common/sobjects/attachment.mjs"; import { getFileStream } from "@pipedream/platform"; const docsLink = "https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_attachment.htm"; /* eslint-disable no-unused-vars */ const { useAdvancedProps, ...props } = getProps({ objType: attachment, docsLink, }); /* eslint-enable no-unused-vars */ export default { ...common, key: "salesforce_rest_api-create-attachment", name: "Create Attachment", description: `Creates an Attachment on a parent object. [See the documentation](${docsLink})`, version: "0.5.4", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props, async run({ $ }) { /* eslint-disable no-unused-vars */ const { salesforce, getAdvancedProps, getAdditionalFields, formatDateTimeProps, docsInfo, filePathOrContent, ...data } = this; /* eslint-enable no-unused-vars */ let body; if (filePathOrContent.startsWith("http") || filePathOrContent.includes("tmp/")) { const stream = await getFileStream(filePathOrContent); const chunks = []; for await (const chunk of stream) { chunks.push(chunk); } body = Buffer.concat(chunks).toString("base64"); } else { body = filePathOrContent; } const response = await salesforce.createRecord("Attachment", { $, data: { Body: body, ...data, }, }); $.export("$summary", `Successfully created attachment "${this.Name}"`); return response; }, }; 

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
SalesforcesalesforceappThis component uses the Salesforce app.
File NameNamestring

Name of the attached file. Max 255 characters.

File Path, URL or ContentfilePathOrContentstring

The file to attach. Provide either a file URL, a path to a file in the /tmp directory (for example, /tmp/myFile.txt), or base64-encoded file data.

Content TypeContentTypestring

The content type (MIME type) of the attachment. For example, image/png.

Parent IDParentIdstring

ID of the parent object of the attachment. See the documentation for supported objects.

DescriptionDescriptionstring

Description of the attachment. Max 500 characters.

PrivateIsPrivateboolean

Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false).

Owner IDOwnerIdstringSelect a value from the drop down menu.

Action Authentication

Salesforce uses OAuth authentication. When you connect your Salesforce account, Pipedream will open a popup window where you can sign into Salesforce and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Salesforce API.

Pipedream requests the following authorization scopes when you connect your account:

About Salesforce

Cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, customer support, and other business activities, ultimately aiming to improve customer relationships and streamline operations.

More Ways to Connect Salesforce + Google Calendar

Create Account with Salesforce API on New Cancelled Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Ended Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Event Start from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Calendar Created from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Event Matching a Search from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Event Created from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Created or Updated Event (Instant) from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Account with Salesforce API on New Created or Updated Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Cancelled Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Event Start from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Calendar Created from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Event Matching a Search from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Event Created from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Created or Updated Event (Instant) from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Attachment with Salesforce API on New Created or Updated Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Campaign with Salesforce API on New Cancelled Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Campaign with Salesforce API on New Ended Event from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Campaign with Salesforce API on New Event Start from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Campaign with Salesforce API on New Calendar Created from Google Calendar API
Google Calendar + Salesforce
 
Try it
Create Campaign with Salesforce API on New Event Matching a Search from Google Calendar API
Google Calendar + Salesforce
 
Try it
New Upcoming Event Alert from the Google Calendar API

Emit new event based on a time interval before an upcoming event in the calendar.

 
Try it
New Created or Updated Event (Instant) from the Google Calendar API

Emit new event when a Google Calendar events is created or updated (does not emit cancelled events)

 
Try it
New Calendar Created from the Google Calendar API

Emit new event when a calendar is created.

 
Try it
New Event Matching a Search from the Google Calendar API

Emit new event when a Google Calendar event is created that matches a search

 
Try it
New Cancelled Event from the Google Calendar API

Emit new event when a Google Calendar event is cancelled or deleted

 
Try it
New Ended Event from the Google Calendar API

Emit new event when a Google Calendar event ends

 
Try it
Case Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when a case is updated. See the documentation

 
Try it
Email Template Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when an email template is updated. See the documentation

 
Try it
Knowledge Article Updated (Instant, of Selectable Type) from the Salesforce API

Emit new event when a knowledge article is updated. See the documentation

 
Try it
New Case (Instant, of Selectable Type) from the Salesforce API

Emit new event when a case is created. See the documentation

 
Try it
New Deleted Record (Instant, of Selectable Type) from the Salesforce API

Emit new event when a record of the selected object type is deleted. See the documentation

 
Try it
New Email Template (Instant, of Selectable Type) from the Salesforce API

Emit new event when an email template is created. See the documentation

 
Try it
New Knowledge Article (Instant, of Selectable Type) from the Salesforce API

Emit new event when a knowledge article is created. See the documentation

 
Try it
New Outbound Message (Instant) from the Salesforce API

Emit new event when a new outbound message is received in Salesforce.

 
Try it
New Record (Instant, of Selectable Type) from the Salesforce API

Emit new event when a record of the selected object type is created. See the documentation

 
Try it
New Updated Record (Instant, of Selectable Type) from the Salesforce API

Emit new event when a record of the selected type is updated. See the documentation

 
Try it
Add Attendees To Event with the Google Calendar API

Add attendees to an existing event. See the documentation

 
Try it
Add Quick Event with the Google Calendar API

Create a quick event to the Google Calendar. See the documentation

 
Try it
Create Event with the Google Calendar API

Create an event in a Google Calendar. See the documentation

 
Try it
Delete an Event with the Google Calendar API

Delete an event from a Google Calendar. See the documentation

 
Try it
Get Current User with the Google Calendar API

Retrieve information about the authenticated Google Calendar account, including the primary calendar (summary, timezone, ACL flags), a list of accessible calendars, user-level settings (timezone, locale, week start), and the color palette that controls events and calendars. Ideal for confirming which calendar account is in use, customizing downstream scheduling, or equipping LLMs with the user’s context (timezones, available calendars) prior to creating or updating events. See the documentation

 
Try it
List Calendars with the Google Calendar API

Retrieve a list of calendars from Google Calendar. See the documentation

 
Try it
List Events with the Google Calendar API

Retrieve a list of event from the Google Calendar. See the documentation

 
Try it
Retrieve Calendar Details with the Google Calendar API

Retrieve calendar details of a Google Calendar. See the documentation

 
Try it
Retrieve Event Details with the Google Calendar API

Retrieve event details from Google Calendar. See the documentation

 
Try it
Retrieve Free/Busy Calendar Details with the Google Calendar API

Retrieve free/busy calendar details from Google Calendar. See the documentation

 
Try it
Update Event with the Google Calendar API

Update an event from Google Calendar. See the documentation

 
Try it
Add Contact to Campaign with the Salesforce API

Adds an existing contact to an existing campaign. See the documentation

 
Try it
Add Lead to Campaign with the Salesforce API

Adds an existing lead to an existing campaign. See the documentation

 
Try it
Convert SOAP XML Object to JSON with the Salesforce API

Converts a SOAP XML Object received from Salesforce to JSON

 
Try it
Create Account with the Salesforce API

Creates a Salesforce account. See the documentation

 
Try it
Create Accounts (Batch) with the Salesforce API

Create multiple Accounts in Salesforce using Bulk API 2.0. See the documentation

 
Try it
Create Attachment with the Salesforce API

Creates an Attachment on a parent object. See the documentation

 
Try it
Create Campaign with the Salesforce API

Creates a marketing campaign. See the documentation

 
Try it
Create Case with the Salesforce API

Creates a Case, which represents a customer issue or problem. See the documentation

 
Try it
Create Case Comment with the Salesforce API

Creates a Case Comment on a selected Case. See the documentation

 
Try it
Create Contact with the Salesforce API

Creates a contact. See the documentation

 
Try it
Create Content Note with the Salesforce API

Creates a content note. See the documentation and Set Up Notes

 
Try it
Create Event with the Salesforce API

Creates an event. See the documentation

 
Try it
Create Lead with the Salesforce API

Creates a lead. See the documentation

 
Try it
Create Note with the Salesforce API

Creates a note. See the documentation

 
Try it
Create Opportunities (Batch) with the Salesforce API

Create multiple Opportunities in Salesforce using Bulk API 2.0. See the documentation

 
Try it
Create Opportunity with the Salesforce API

Creates an opportunity. See the documentation

 
Try it
Create Record with the Salesforce API

Create a record of a given object. See the documentation

 
Try it
Create Task with the Salesforce API

Creates a task. See the documentation

 
Try it
Create User with the Salesforce API

Creates a Salesforce user. See the documentation

 
Try it
Delete Opportunity with the Salesforce API

Deletes an opportunity. See the documentation

 
Try it
Delete Record with the Salesforce API

Deletes an existing record in an object. See the documentation

 
Try it
Find Records with the Salesforce API

Retrieves selected fields for some or all records of a selected object. See the documentation

 
Try it
Get Case with the Salesforce API

Retrieves a case by its ID. See the documentation

 
Try it
Get Knowledge Articles with the Salesforce API

Get a page of online articles for the given language and category through either search or query. See the documentation

 
Try it
Get Knowledge Data Category Groups with the Salesforce API

Fetch data category groups visible to the current user. See the documentation

 
Try it
Get Record by ID with the Salesforce API

Retrieves a record by its ID. See the documentation

 
Try it
Get User with the Salesforce API

Retrieves a user by their ID. See the documentation

 
Try it
Insert Blob Data with the Salesforce API

Inserts blob data in Salesforce standard objects. See the documentation

 
Try it
List Case Comments with the Salesforce API

Lists all comments for a case. See the documentation

 
Try it
List Email Messages with the Salesforce API

Lists all email messages for a case. See the documentation

 
Try it
List Email Templates with the Salesforce API

Lists all email templates. See the documentation

 
Try it
List Knowledge Articles with the Salesforce API

Lists all knowledge articles. See the documentation

 
Try it
List Object Fields with the Salesforce API

Lists all fields for a given object type. See the documentation

 
Try it
Post a Message to Chatter Feed with the Salesforce API

Post a feed item in Chatter. See the documentation

 
Try it
Search Object Records with the Salesforce API

Searches for records in an object using a parameterized search. See the documentation

 
Try it
Send Email with the Salesforce API

Sends an email. See the documentation

 
Try it
SOQL Query (Object Query) with the Salesforce API

Executes a Salesforce Object Query Language (SOQL) query-based, SQL-like search.

 
Try it
SOSL Search (Object Search) with the Salesforce API

Executes a Salesforce Object Search Language (SOSL) text-based search query.

 
Try it
Update Account with the Salesforce API

Updates a Salesforce account. See the documentation

 
Try it
Update Accounts (Batch) with the Salesforce API

Update multiple Accounts in Salesforce using Bulk API 2.0. See the documentation

 
Try it
Update Contact with the Salesforce API

Updates a contact. See the documentation

 
Try it
Update Email Template with the Salesforce API

Updates an email template. See the documentation

 
Try it
Update Opportunities (Batch) with the Salesforce API

Update multiple Opportunities in Salesforce using Bulk API 2.0. See the documentation

 
Try it
Update Opportunity with the Salesforce API

Updates an opportunity. See the documentation

 
Try it
Update Record with the Salesforce API

Update fields of a record. See the documentation

 
Try it
Upsert Record with the Salesforce API

Create or update a record of a given object. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.