← Procore + GitLab integrations

Update Epic with GitLab API on Budget Snapshot Event (Instant) from Procore API

Pipedream makes it easy to connect APIs for GitLab, Procore and 2,500+ other apps remarkably fast.

Trigger workflow on
Budget Snapshot Event (Instant) from the Procore API
Next, do this
Update Epic with the GitLab 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 Procore trigger and GitLab 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 Budget Snapshot Event (Instant) trigger
    1. Connect your Procore account
    2. Select a Company
    3. Optional- Select a Project
  3. Configure the Update Epic action
    1. Connect your GitLab account
    2. Select a Group ID
    3. Select a Epic Internal ID
    4. Optional- Select one or more Add labels
    5. Optional- Configure Confidential
    6. Optional- Configure Description
    7. Optional- Select one or more Labels
    8. Optional- Select a Parent Id
    9. Optional- Select one or more Remove labels
    10. Optional- Select a State Event
    11. Optional- Configure Title
    12. Optional- Configure Updated at
    13. Optional- Configure Color
    14. Optional- Configure Start Date Is Fixed
    15. Optional- Configure Due Date Is Fixed
  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:Emits an event each time a Budget Snapshot is created, updated, or deleted in a project.
Version:0.0.2
Key:procore-budget-snapshot

Procore Overview

The Procore API empowers developers to interact with its construction management software programmatically, enabling automation of tasks, data synchronization, and enhanced reporting. With APIs covering project management, quality and safety, construction financials, and field productivity, you can craft workflows that streamline operations, reduce manual entry, and provide real-time insights. On Pipedream, these capabilities can be harnessed to create workflows that react to events in Procore or orchestrate actions between Procore and other apps, optimizing construction project workflows.

Trigger Code

const common = require("../common.js");

module.exports = {
  ...common,
  name: "Budget Snapshot Event (Instant)",
  key: "procore-budget-snapshot",
  description:
    "Emits an event each time a Budget Snapshot is created, updated, or deleted in a project.",
  version: "0.0.2",
  type: "source",
  methods: {
    ...common.methods,
    getResourceName() {
      return "Budget View Snapshots";
    },
    async getDataToEmit(body) {
      const { resource_id: resourceId } = body;
      const limit = 100;
      let offset = 0;
      let total = limit;
      let snapshotRows = [];
      while (total == limit) {
        const resource = await this.procore.getBudgetViewSnapshot(
          this.company,
          this.project,
          resourceId,
          limit,
          offset,
        );
        snapshotRows = snapshotRows.concat(resource);
        total = resource.length;
        offset += limit;
      }
      return {
        ...body,
        snapshotRows,
      };
    },
    getMeta(body) {
      const {
        id,
        event_type: eventType,
        resource_id: resourceId,
        timestamp,
      } = body;
      const ts = new Date(timestamp).getTime();
      return {
        id,
        summary: `${eventType} Budget Snapshot ID:${resourceId}`,
        ts,
      };
    },
  },
};

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
ProcoreprocoreappThis component uses the Procore 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.
CompanycompanyintegerSelect a value from the drop down menu.
ProjectprojectintegerSelect a value from the drop down menu.

Trigger Authentication

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

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

About Procore

The all-in-one construction management software built to help you finish quality projects — safely, on time, and within budget.

Action

Description:Updates an epic. [See the documentation](https://docs.gitlab.com/ee/api/epics.html#update-epic)
Version:0.0.3
Key:gitlab-update-epic

GitLab Overview

The GitLab API provides programmatic access to your GitLab projects, allowing you to automate common tasks, manage issues, merge requests, and more. With the GitLab API on Pipedream, you can create customized workflows that integrate with other services, streamline your development process, and enhance project management. By leveraging the power of serverless, you can set up triggers for GitLab events and perform actions across a variety of apps without managing infrastructure.

Action Code

import lodash from "lodash";
import gitlab from "../../gitlab.app.mjs";

export default {
  key: "gitlab-update-epic",
  name: "Update Epic",
  description: "Updates an epic. [See the documentation](https://docs.gitlab.com/ee/api/epics.html#update-epic)",
  version: "0.0.3",
  type: "action",
  props: {
    gitlab,
    groupId: {
      propDefinition: [
        gitlab,
        "groupId",
      ],
    },
    epicIid: {
      propDefinition: [
        gitlab,
        "epicIid",
        ({ groupId }) => ({
          groupId,
        }),
      ],
    },
    add_labels: {
      propDefinition: [
        gitlab,
        "groupLabels",
        ({ groupId }) => ({
          groupId,
        }),
      ],
      label: "Add labels",
    },
    confidential: {
      propDefinition: [
        gitlab,
        "confidential",
      ],
    },
    description: {
      propDefinition: [
        gitlab,
        "description",
      ],
      description: "The description of the issue",
    },
    labels: {
      propDefinition: [
        gitlab,
        "groupLabels",
        ({ groupId }) => ({
          groupId,
        }),
      ],
      description: "Comma-separated label names for an issue. Set to an empty string to unassign all labels.",
    },
    parent_id: {
      propDefinition: [
        gitlab,
        "epicIid",
        ({ groupId }) => ({
          groupId,
        }),
      ],
      label: "Parent Id",
      description: "The ID of a parent epic. Available in GitLab 14.6 and later",
      optional: true,
    },
    remove_labels: {
      propDefinition: [
        gitlab,
        "groupLabels",
        ({ groupId }) => ({
          groupId,
        }),
      ],
      label: "Remove labels",
      description: "Comma-separated label names to remove from an issue.",
    },
    stateEvent: {
      propDefinition: [
        gitlab,
        "stateEvent",
      ],
      options: [
        "close",
        "reopen",
      ],
      optional: true,
    },
    title: {
      propDefinition: [
        gitlab,
        "title",
      ],
      description: "The title of an epic",
      optional: true,
    },
    updated_at: {
      propDefinition: [
        gitlab,
        "updated_at",
      ],
    },
    color: {
      propDefinition: [
        gitlab,
        "color",
      ],
    },
    start_date_is_fixed: {
      propDefinition: [
        gitlab,
        "start_date_is_fixed",
      ],
      reloadProps: true,
    },
    due_date_is_fixed: {
      propDefinition: [
        gitlab,
        "due_date_is_fixed",
      ],
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (this.start_date_is_fixed) {
      props.start_date_fixed = {
        type: "string",
        label: "Start date fixed",
        description: "The fixed start date of an epic (in GitLab 11.3 and later)",
      };
    }
    if (this.due_date_is_fixed) {
      props.due_date_fixed = {
        type: "string",
        label: "Due date fixed",
        description: "The fixed due date of an epic (in GitLab 11.3 and later)",
      };
    }
    return props;
  },
  async run({ $ }) {
    const data = lodash.pickBy(lodash.pick(this, [
      "add_labels",
      "confidential",
      "description",
      "due_date_is_fixed",
      "due_date_fixed",
      "labels",
      "parent_id",
      "remove_labels",
      "start_date_is_fixed",
      "start_date_fixed",
      "stateEvent",
      "title",
      "updated_at",
      "color",
    ]));
    data.labels = data.labels?.join();

    const response = await this.gitlab.updateEpic(this.groupId, this.epicIid, {
      data,
    });
    $.export("$summary", `Updated epic ${this.epicIid}`);
    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
GitLabgitlabappThis component uses the GitLab app.
Group IDgroupIdstringSelect a value from the drop down menu.
Epic Internal IDepicIidstringSelect a value from the drop down menu.
Add labelsadd_labelsstring[]Select a value from the drop down menu.
Confidentialconfidentialboolean

Whether the epic should be confidential

Descriptiondescriptionstring

The description of the issue

Labelslabelsstring[]Select a value from the drop down menu.
Parent Idparent_idstringSelect a value from the drop down menu.
Remove labelsremove_labelsstring[]Select a value from the drop down menu.
State EventstateEventstringSelect a value from the drop down menu:closereopen
Titletitlestring

The title of an epic

Updated atupdated_atstring

When the epic was updated. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z . Requires administrator or project/group owner privileges (available in GitLab 13.5 and later)

Colorcolorstring

The color of the epic. Introduced in GitLab 14.8, behind a feature flag named epic_highlight_color (disabled by default)

Start Date Is Fixedstart_date_is_fixedboolean

Whether start date should be sourced from start_date_fixed or from milestones (in GitLab 11.3 and later)

Due Date Is Fixeddue_date_is_fixedboolean

Whether due date should be sourced from due_date_fixed or from milestones (in GitLab 11.3 and later)

Action Authentication

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

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

apiread_userread_repositorywrite_repositoryread_registrysudoopenidprofileemail

About GitLab

GitLab is the most comprehensive AI-powered DevSecOps Platform.

More Ways to Connect GitLab + Procore

Create Manpower Log with Procore API on New Audit Event (Instant) from GitLab API
GitLab + Procore
 
Try it
Create Manpower Log with Procore API on New Branch (Instant) from GitLab API
GitLab + Procore
 
Try it
Create Manpower Log with Procore API on New Commit Comment (Instant) from GitLab API
GitLab + Procore
 
Try it
Create Manpower Log with Procore API on New Commit (Instant) from GitLab API
GitLab + Procore
 
Try it
Create Manpower Log with Procore API on New Issue (Instant) from GitLab API
GitLab + Procore
 
Try it
Budget Snapshot Event (Instant) from the Procore API

Emits an event each time a Budget Snapshot is created, updated, or deleted in a project.

 
Try it
Commitment Change Order Event (Instant) from the Procore API

Emits an event each time a Commitment Change Order is created, updated, or deleted in a project.

 
Try it
New Budget Snapshot Event (Instant) from the Procore API

Emit new event when a new budget snapshot event is created. See the documentation

 
Try it
New Change Order Package Event (Instant) from the Procore API

Emit new event when a new change order package event is created. See the documentation

 
Try it
New Commitment Change Order Event (Instant) from the Procore API

Emit new event when a new commitment change order event is created. See the documentation

 
Try it
Create Incident with the Procore API

Create a new incident. See the documentation

 
Try it
Create Manpower Log with the Procore API

Create a new manpower log. See the documentation

 
Try it
Create RFI with the Procore API

Create a new RFI. See the documentation

 
Try it
Create Submittal with the Procore API

Create a new submittal. See the documentation

 
Try it
Create Timesheet with the Procore API

Create a new timesheet. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,500+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
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.
Premium
Salesforce
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.
Premium
HubSpot
HubSpot
HubSpot's CRM platform contains the marketing, sales, service, operations, and website-building software you need to grow your business.
Premium
Zoho CRM
Zoho CRM
Zoho CRM is an online Sales CRM software that manages your sales, marketing, and support in one CRM platform.
Premium
Stripe
Stripe
Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
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.
Premium
WooCommerce
WooCommerce
WooCommerce is the open-source ecommerce platform for WordPress.
Premium
Snowflake
Snowflake
A data warehouse built for the cloud
Premium
MongoDB
MongoDB
MongoDB is an open source NoSQL database management program.
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
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.
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.