← GitHub + Freshdesk integrations

Create a Company with Freshdesk API on New Branch (Instant) from GitHub API

Pipedream makes it easy to connect APIs for Freshdesk, GitHub and 1000+ other apps remarkably fast.

Trigger workflow on
New Branch (Instant) from the GitHub API
Next, do this
Create a Company with the Freshdesk API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

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

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a GitHub trigger and Freshdesk 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 Branch (Instant) trigger
    1. Connect your GitHub account
    2. Select a Repo
  3. Configure the Create a Company action
    1. Connect your Freshdesk account
    2. Configure Name
    3. Optional- Configure Description
    4. Optional- Configure Note
    5. Optional- Configure Industry
    6. Optional- Configure Domains
  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 events when a new branch is created
Version:0.0.6
Key:github-new-branch

Trigger Code

const common = require("../common-webhook.js");
const eventTypes = [
  "branch",
];

module.exports = {
  ...common,
  key: "github-new-branch",
  name: "New Branch (Instant)",
  description: "Emit new events when a new branch is created",
  version: "0.0.6",
  dedupe: "unique",
  type: "source",
  methods: {
    getEventNames() {
      return [
        "create",
      ];
    },
    generateMeta(data) {
      const ts = Date.now();
      return {
        id: `${data.repository.id}${ts}`,
        summary: `New Branch: ${data.ref} by ${data.sender.login}`,
        ts,
      };
    },
    emitEvent(body) {
      if (eventTypes.indexOf(body.ref_type) > -1) {
        const meta = this.generateMeta(body);
        this.$emit(body, meta);
      }
    },
  },
};

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
GitHubgithubappThis component uses the GitHub app.
ReporepoFullNamestringSelect a value from the drop down menu.
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.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.

Trigger Authentication

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

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

repoadmin:orgadmin:public_keyadmin:org_hookgistprojectnotificationsuserwrite:discussionwrite:packagesread:packagesadmin:repo_hook

About GitHub

Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.

Action

Description:Create a company. [See docs here](https://developers.freshdesk.com/api/#companies)
Version:0.0.1
Key:freshdesk-create-company

Freshdesk Overview

With the Freshdesk API, you can create powerful customer support applications.
Here are some examples of what you can build:

  • A ticketing system for tracking customer issues
  • A knowledge base for self-service customer support
  • A customer community for engaging customers and crowd-sourcing solutions
  • A call center management system

Action Code

import { removeNullEntries } from "../../common/utils.mjs";
import freshdesk from "../../freshdesk.app.mjs";

export default {
  key: "freshdesk-create-company",
  name: "Create a Company",
  description: "Create a company. [See docs here](https://developers.freshdesk.com/api/#companies)",
  version: "0.0.1",
  type: "action",
  props: {
    freshdesk,
    name: {
      type: "string",
      label: "Name",
      description: "Name of the company.",
    },
    description: {
      type: "string",
      label: "Description",
      description: "Description of the company.",
      optional: true,
    },
    note: {
      type: "string",
      label: "Note",
      description: "Any specific note about the company.",
      optional: true,
    },
    industry: {
      type: "string",
      label: "Industry",
      description: "The industry the company serves in.",
      optional: true,
    },
    domains: {
      type: "string[]",
      label: "Domains",
      description: "Domains of the company. Email addresses of contacts that contain this domain will be associated with that company automatically. e.g. [\"supernova\",\"nova\"]",
      optional: true,
    },
  },
  async run({ $ }) {
    const payload = removeNullEntries({
      name: this.name,
      domains: this.domains,
      note: this.note,
      industry: this.industry,
      description: this.description,
    });
    const response = await this.freshdesk.createCompany({
      $,
      payload,
    });
    response && $.export("$summary", "Company sucessfully created");
    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
FreshdeskfreshdeskappThis component uses the Freshdesk app.
Namenamestring

Name of the company.

Descriptiondescriptionstring

Description of the company.

Notenotestring

Any specific note about the company.

Industryindustrystring

The industry the company serves in.

Domainsdomainsstring[]

Domains of the company. Email addresses of contacts that contain this domain will be associated with that company automatically. e.g. ["supernova","nova"]

Action Authentication

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

Your API key is in your Profile > Settings page, below the change password section on the right.
Your domain is 12345678 if your Freshdesk URL is https://12345678.freshdesk.com/

About Freshdesk

Customer support software

More Ways to Connect Freshdesk + GitHub

Search Issues and Pull Requests with GitHub API on New Contact from Freshdesk API
Freshdesk + GitHub
 
Try it
Search Issues and Pull Requests with GitHub API on New Ticket from Freshdesk API
Freshdesk + GitHub
 
Try it
Create Issue with GitHub API on New Contact from Freshdesk API
Freshdesk + GitHub
 
Try it
Create Issue with GitHub API on New Ticket from Freshdesk API
Freshdesk + GitHub
 
Try it
Create Issue Comment with GitHub API on New Contact from Freshdesk API
Freshdesk + GitHub
 
Try it
New Branch (Instant) from the GitHub API

Emit new events when a new branch is created

 
Try it
New Card in Column (Classic Projects) from the GitHub API

Emit new event when a (classic) project card is created or moved to a specific column. For Projects V2 use New Issue with Status trigger. More information here

 
Try it
New Collaborator (Instant) from the GitHub API

Emit new events when collaborators are added to a repo

 
Try it
New Commit (Instant) from the GitHub API

Emit new events on new commits to a repo or branch

 
Try it
New Commit Comment (Instant) from the GitHub API

Emit new events on new commit comments

 
Try it
Create Issue with the GitHub API

Create a new issue in a Gihub repo. See docs here

 
Try it
Search Issues and Pull Requests with the GitHub API

Find issues and pull requests by state and keyword. See docs here

 
Try it
Create Branch with the GitHub API

Create a new branch in a Github repo. See docs here

 
Try it
Create Issue Comment with the GitHub API

Create a new comment in a issue. See docs here

 
Try it
Create or update file contents with the GitHub API

Create or update a file in a repository. This will replace an existing file. See docs here

 
Try it