← PandaDoc + MongoDB integrations

Execute Aggregation with MongoDB API on Document Creation Failed (Instant) from PandaDoc API

Pipedream makes it easy to connect APIs for MongoDB, PandaDoc and 2,800+ other apps remarkably fast.

Trigger workflow on
Document Creation Failed (Instant) from the PandaDoc API
Next, do this
Execute Aggregation with the MongoDB 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 PandaDoc trigger and MongoDB 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 Document Creation Failed (Instant) trigger
    1. Connect your PandaDoc account
  3. Configure the Execute Aggregation action
    1. Connect your MongoDB account
    2. Select a Database
    3. Select a Collection
    4. Configure Pipeline
  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 document failed to be created. [See the documentation here](https://developers.pandadoc.com/reference/create-webhooks-subscription)
Version:0.0.5
Key:pandadoc-document-creation-failed

PandaDoc Overview

The PandaDoc API opens up a realm of possibilities for automating document workflows, creating a seamless bridge between document management and various business processes. With it, you can programmatically create, send, and track documents, streamline electronic signatures, and manage templates, among others. Integrations through Pipedream can harness these capabilities, enabling you to trigger actions in PandaDoc based on events from other apps, or vice versa.

Trigger Code

import common from "../common.mjs"; const DOCS_LINK = "https://developers.pandadoc.com/reference/create-webhooks-subscription"; export default { ...common, name: "Document Creation Failed (Instant)", description: `Emit new event when a document failed to be created. [See the documentation here](${DOCS_LINK})`, key: "pandadoc-document-creation-failed", version: "0.0.5", type: "source", methods: { ...common.methods, getHookName() { return "Document Creation Failed"; }, getHookTypes() { return [ "document_creation_failed", ]; }, }, }; 

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
PandaDocappappThis component uses the PandaDoc app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.

Trigger Authentication

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

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

read+write

About PandaDoc

Create, Approve, Track & eSign Docs 40% Faster

Action

Description:Execute an aggregation pipeline on a MongoDB collection. [See the documentation](https://www.mongodb.com/docs/drivers/node/current/fundamentals/aggregation/)
Version:0.0.2
Key:mongodb-execute-aggregation

MongoDB Overview

The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.

Action Code

import app from "../../mongodb.app.mjs"; import utils from "../../common/utils.mjs"; export default { key: "mongodb-execute-aggregation", name: "Execute Aggregation", description: "Execute an aggregation pipeline on a MongoDB collection. [See the documentation](https://www.mongodb.com/docs/drivers/node/current/fundamentals/aggregation/)", version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props: { app, database: { propDefinition: [ app, "database", ], }, collectionName: { propDefinition: [ app, "collection", ({ database }) => ({ database, }), ], }, pipeline: { type: "string[]", label: "Pipeline", description: "The aggregation pipeline to execute where each row represents a stage as a JSON string. Eg. `[ { \"$match\": { \"categories\": \"Bakery\" } }, { \"$group\": { \"_id\": \"$stars\", \"count\": { \"$sum\": 1 } } } ]`", }, }, methods: { async excecuteAggregation({ database, collectionName, pipeline, } = {}) { const { app } = this; const client = await app.getClient(); const collection = app.getCollection(client, database, collectionName); const cursor = collection.aggregate(pipeline); const result = await utils.iterate(cursor); await client.close(); return result; }, }, async run({ $ }) { const { excecuteAggregation, database, collectionName, pipeline, } = this; const response = await excecuteAggregation({ database, collectionName, pipeline: utils.parseArray(pipeline), }); $.export("$summary", `Successfully executed aggregation pipeline on collection with \`${response.length}\` document(s).`); 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
MongoDBappappThis component uses the MongoDB app.
DatabasedatabasestringSelect a value from the drop down menu.
CollectioncollectionNamestringSelect a value from the drop down menu.
Pipelinepipelinestring[]

The aggregation pipeline to execute where each row represents a stage as a JSON string. Eg. [ { "$match": { "categories": "Bakery" } }, { "$group": { "_id": "$stars", "count": { "$sum": 1 } } } ]

Action Authentication

MongoDB uses API keys for authentication. When you connect your MongoDB account, Pipedream securely stores the keys so you can easily authenticate to MongoDB APIs in both code and no-code steps.

Before you connect to your Mongo database from Pipedream, please make sure your database is accessible from the public internet. You may need to add a firewall rule allowing connections from 0.0.0.0/0.

Then, enter the details of your Mongo host / database below.

About MongoDB

MongoDB is an open source NoSQL database management program.

More Ways to Connect MongoDB + PandaDoc

Create Document Attachment with PandaDoc API on New Collection from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document Attachment with PandaDoc API on New Database from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document Attachment with PandaDoc API on New Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document Attachment with PandaDoc API on New Field in Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document From Template with PandaDoc API on New Collection from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document From Template with PandaDoc API on New Database from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document From Template with PandaDoc API on New Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Create Document From Template with PandaDoc API on New Field in Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Document Details with PandaDoc API on New Collection from MongoDB API
MongoDB + PandaDoc
 
Try it
Document Details with PandaDoc API on New Database from MongoDB API
MongoDB + PandaDoc
 
Try it
Document Details with PandaDoc API on New Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Document Details with PandaDoc API on New Field in Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Create or Update Contact with PandaDoc API on New Collection from MongoDB API
MongoDB + PandaDoc
 
Try it
Create or Update Contact with PandaDoc API on New Database from MongoDB API
MongoDB + PandaDoc
 
Try it
Create or Update Contact with PandaDoc API on New Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Create or Update Contact with PandaDoc API on New Field in Document from MongoDB API
MongoDB + PandaDoc
 
Try it
List Contacts with PandaDoc API on New Collection from MongoDB API
MongoDB + PandaDoc
 
Try it
List Contacts with PandaDoc API on New Database from MongoDB API
MongoDB + PandaDoc
 
Try it
List Contacts with PandaDoc API on New Document from MongoDB API
MongoDB + PandaDoc
 
Try it
List Contacts with PandaDoc API on New Field in Document from MongoDB API
MongoDB + PandaDoc
 
Try it
Document Creation Failed (Instant) from the PandaDoc API

Emit new event when a document failed to be created. See the documentation here

 
Try it
Document Deleted (Instant) from the PandaDoc API

Emit new event when a document is deleted. See the documentation here

 
Try it
Document State Changed (Instant) from the PandaDoc API

Emit new event when a document's state is changed. See the documentation here

 
Try it
Document Updated (Instant) from the PandaDoc API

Emit new event when a document is updated. See the documentation here

 
Try it
Recipient Completed (Instant) from the PandaDoc API

Emit new event when a recipient completes a document. See the documentation here

 
Try it
New Collection from the MongoDB API

Emit new an event when a new collection is added to a database

 
Try it
New Database from the MongoDB API

Emit new an event when a new database is added

 
Try it
New Document from the MongoDB API

Emit new an event when a new document is added to a collection

 
Try it
New Field in Document from the MongoDB API

Emit new an event when a new field is added to a document

 
Try it
Create Document Attachment with the PandaDoc API

Adds an attachment to a document. See the documentation here

 
Try it
Create Document From File with the PandaDoc API

Create a document from a file or public file URL. See the documentation here

 
Try it
Create Document From Template with the PandaDoc API

Create a Document from a PandaDoc Template. See the documentation here

 
Try it
Create Folder with the PandaDoc API

Create a new folder to store your documents. See the documentation here

 
Try it
Create or Update Contact with the PandaDoc API

This method adds or updates a contact using the email as index. See the documentation here

 
Try it
Download Document with the PandaDoc API

Download a document as PDF. See documentation here

 
Try it
Download Protected Document with the PandaDoc API

Download a completed document as a verifiable PDF. See documentation here

 
Try it
Get Document Details with the PandaDoc API

Return detailed data about a document. See the documentation here

 
Try it
Get Document Status with the PandaDoc API

Get basic status info about a document. See documentation here

 
Try it
List Contacts with the PandaDoc API

List all contacts within an account. See the documentation here

 
Try it
List Document Attachments with the PandaDoc API

Returns a list of attachments associated with a specified document. See the documentation here

 
Try it
List Documents with the PandaDoc API

List documents, optionally filtering by a search query or tags. See the documentation here

 
Try it
List Folders with the PandaDoc API

List folders which contain Documents. See the documentation here

 
Try it
Send Document with the PandaDoc API

Move a document to sent status and send an optional email. See the documentation

 
Try it
Create New Document with the MongoDB API

Create a new document in a collection of your choice. See the docs here

 
Try it
Delete a Document with the MongoDB API

Delete a single document by ID. See the docs here

 
Try it
Execute Aggregation with the MongoDB API

Execute an aggregation pipeline on a MongoDB collection. See the documentation

 
Try it
Find Document with the MongoDB API

Finds a document by a query filter. See the documentation

 
Try it
Find Document by Id with the MongoDB API

Retrieves a single document by ID. See the docs here

 
Try it
Search Documents with the MongoDB API

Search for specific documents or return all documents. See the docs here

 
Try it
Update a Document with the MongoDB API

Updates a single document by ID. See the docs here

 
Try it
Update Documents with the MongoDB API

Updates many documents by query filter. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
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.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
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
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.