← Lighthouse + ServiceNow integrations

Create Table Record with ServiceNow API on New Ticket Created from Lighthouse API

Pipedream makes it easy to connect APIs for ServiceNow, Lighthouse and 3,000+ other apps remarkably fast.

Trigger workflow on
New Ticket Created from the Lighthouse API
Next, do this
Create Table Record with the ServiceNow 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 Lighthouse trigger and ServiceNow 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 Ticket Created trigger
    1. Connect your Lighthouse account
    2. Configure timer
    3. Select a Project ID
  3. Configure the Create Table Record action
    1. Connect your ServiceNow account
    2. Select a Table
    3. Configure Record Data
    4. Optional- Select a Response Data Format
    5. Optional- Configure Exclude Reference Links
    6. Optional- Configure Response Fields
    7. Optional- Configure Input Display Value
    8. Optional- Select a Response View
  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 for each new ticket created.
Version:0.0.1
Key:lighthouse-new-ticket-created

Lighthouse Overview

The Lighthouse API provides a window into the world of SSL/TLS certificates. It lets you monitor and track certificates issued for specific domains, offering invaluable insights for security and compliance. By leveraging this API within Pipedream, you can automate certificate tracking, set up alerts for new certificates, and integrate this data with other services for a comprehensive view of your domain's security posture.

Trigger Code

import common from "../common/common.mjs";

export default {
  ...common,
  name: "New Ticket Created",
  version: "0.0.1",
  key: "lighthouse-new-ticket-created",
  description: "Emit new event for each new ticket created.",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    projectId: {
      propDefinition: [
        common.props.lighthouse,
        "projectId",
      ],
    },
  },
  methods: {
    ...common.methods,
    emitEvent({ ticket }) {
      this.$emit(ticket, {
        id: ticket.number,
        summary: `New ticket created with number ${ticket.number}`,
        ts: Date.parse(ticket.created_at),
      });
    },
    async getResources(args = {}) {
      const { tickets } = await this.lighthouse.getTickets({
        ...args,
        projectId: this.projectId,
      });

      return tickets ?? [];
    },
    resourceKey() {
      return "ticket";
    },
  },
};

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
LighthouselighthouseappThis component uses the Lighthouse app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
Project IDprojectIdstringSelect a value from the drop down menu.

Trigger Authentication

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

Your API Token is located in your Lighthouse Profile at the top right, below the projects area in the sidebar.
Your domain is 12345678 if your Lighthouse URL is https://12345678.lighthouseapp.com/

About Lighthouse

Lighthouse is a beautifully simple issue tracker changing the way thousands manage their issues.

Action

Description:Inserts one record in the specified table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-POST)
Version:1.0.1
Key:servicenow-create-table-record

ServiceNow Overview

The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.

Action Code

import servicenow from "../../servicenow.app.mjs";
import { parseObject } from "../../common/utils.mjs";

export default {
  key: "servicenow-create-table-record",
  name: "Create Table Record",
  description: "Inserts one record in the specified table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-POST)",
  version: "1.0.1",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    servicenow,
    table: {
      propDefinition: [
        servicenow,
        "table",
      ],
    },
    recordData: {
      label: "Record Data",
      type: "object",
      description: "The data to create the record with, as key-value pairs (e.g. `{ \"name\": \"John Doe\", \"email\": \"john.doe@example.com\" }`)",
    },
    responseDataFormat: {
      propDefinition: [
        servicenow,
        "responseDataFormat",
      ],
    },
    excludeReferenceLinks: {
      propDefinition: [
        servicenow,
        "excludeReferenceLinks",
      ],
    },
    responseFields: {
      propDefinition: [
        servicenow,
        "responseFields",
      ],
    },
    inputDisplayValue: {
      propDefinition: [
        servicenow,
        "inputDisplayValue",
      ],
    },
    responseView: {
      propDefinition: [
        servicenow,
        "responseView",
      ],
    },
  },
  async run({ $ }) {
    const response = await this.servicenow.createTableRecord({
      $,
      table: this.table,
      data: parseObject(this.recordData),
      params: {
        sysparm_display_value: this.responseDataFormat,
        sysparm_exclude_reference_link: this.excludeReferenceLinks,
        sysparm_fields: this.responseFields?.join?.() || this.responseFields,
        sysparm_input_display_value: this.inputDisplayValue,
        sysparm_view: this.responseView,
      },
    });

    $.export("$summary", `Successfully created record in table "${this.table}"`);

    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
ServiceNowservicenowappThis component uses the ServiceNow app.
TabletablestringSelect a value from the drop down menu.
Record DatarecordDataobject

The data to create the record with, as key-value pairs (e.g. { "name": "John Doe", "email": "john.doe@example.com" })

Response Data FormatresponseDataFormatstringSelect a value from the drop down menu:{ "value": "true", "label": "Returns the display values for all fields" }{ "value": "false", "label": "Returns the actual values from the database" }{ "value": "all", "label": "Returns both actual and display values" }
Exclude Reference LinksexcludeReferenceLinksboolean

If true, the response excludes Table API links for reference fields

Response FieldsresponseFieldsstring[]

The fields to return in the response. By default, all fields are returned

Input Display ValueinputDisplayValueboolean

If true, the input values are treated as display values (and are manipulated so they can be stored properly in the database)

Response ViewresponseViewstringSelect a value from the drop down menu:desktopmobileboth

Action Authentication

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

Please follow the steps in this doc to configure a client application on your ServiceNow instance that will allow Pipedream access to your instance's REST API.

Once you're done, enter the client ID and secret you configured in Step 2, along with your instance name. The instance name is the host portion of your instance's URL: that is, the dev123 in https://dev123.service-now.com/.

About ServiceNow

The smarter way to workflow

More Ways to Connect ServiceNow + Lighthouse

Create Table Record with ServiceNow API on New Message Created from Lighthouse API
Lighthouse + ServiceNow
 
Try it
Get Table Record By SysId with ServiceNow API on New Message Created from Lighthouse API
Lighthouse + ServiceNow
 
Try it
Get Table Records with ServiceNow API on New Message Created from Lighthouse API
Lighthouse + ServiceNow
 
Try it
Update Table Record with ServiceNow API on New Message Created from Lighthouse API
Lighthouse + ServiceNow
 
Try it
Create Table Record with ServiceNow API on New Milestone Created from Lighthouse API
Lighthouse + ServiceNow
 
Try it
New Message Created from the Lighthouse API

Emit new event for each new message created.

 
Try it
New Milestone Created from the Lighthouse API

Emit new event for each new milestone created.

 
Try it
New Project Created from the Lighthouse API

Emit new event for each new project created.

 
Try it
New Ticket Created from the Lighthouse API

Emit new event for each new ticket created.

 
Try it
Create Milestone with the Lighthouse API

Creates a milestone. See docs here

 
Try it
Create Project with the Lighthouse API

Creates a project. See docs here

 
Try it
Create Ticket with the Lighthouse API

Creates a ticket. See docs here

 
Try it
Create Table Record with the ServiceNow API

Inserts one record in the specified table. See the documentation

 
Try it
Delete Table Record with the ServiceNow API

Deletes the specified record from a table. 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.