Using Zapier to Connect to ServiceNow


Zapier enables users to send Ideas created in Brightidea into your ServiceNow system. Zapier also opens up the ability to send ServiceNow submissions into Brightidea to generate new Ideas. This article will showcase both creating a record in ServiceNow from Brightidea, and creating a new idea in a Brightidea pipeline from ServiceNow through Zapier and Webhooks.

Passing Brightidea Submissions into ServiceNow (Outgoing Webhooks)

Setting up the Webhook

In Zapier

Begin configuring a Zap with 'Webhooks by Zapier' and follow the prompts to get a URL:

mceclip11.png

In Brightidea

Open Brightidea and create a rule:

  • Method: Post (to match Zapier configuration)
  • URL: Copy and paste from configuration above
  • Content type: JSON
  • Header: HDR1:hdr1
  • Body: start with the sample code below to send all of the dynamic fields to Zapier

mceclip12.png

{"Activity":{"AffiliateName":"[AFFILIATE_NAME]","AffiliateID":"[AFFILIATE_ID]","WebstormName":"[WEBSTORM_NAME]","WebstormID":"[WEBSTORM_ID]","ContactEmail":"[CONTACT_EMAIL]"},"Idea":{"SubmitterEmail":"[EMAIL]","IdeaCode":"[IDEA_CODE]","IdeaTitle":"[IDEA_TITLE]","IdeaID":"[IDEA_URL]","IdeaDescription":"[IDEA_DESCRIPTION]","IdeaURL":"[IDEA_ID]"}}

 

Return to Zapier

Continue to follow the prompts to configure the action with test data:

  • Send a test request by triggering the rule. It should come across nicely like this:

mceclip13.png

  • Select the action to perform. For us, we will create a new ServiceNow record using the fields from above.
  • Choose ServiceNow as the app, and "Create Record" as the Action Event.

Screen_Shot_2021-07-21_at_12.55.41_PM.png

  • Next, Zapier will ask you to select the table you want to pass the Brightidea records into, and customize/map the fields using the Brightidea data fields you've configured above.Screen_Shot_2021-07-21_at_1.03.23_PM.png
  • Confirm via the test prompts that everything is coming through and matching up correctly

Once the zap is correctly set up, anytime your newly created rule triggers (i.e. when an idea hits a certain step), the Idea will be passed into the selected ServiceNow table as a new record.

 

Example Workflow

 

Let's say we have an Idea Box set up for enhancement requests, and we want to push the requests into ServiceNow at a certain step. 

 

Create the rule using the steps listed above, and make the event the triggers the rule "Added to Step":

Screen_Shot_2021-07-21_at_1.50.55_PM.png

 

Once the rule is created, move one of your ideas into the Step you've connected to the trigger.

Untitled.png

 

In the background, the configured rule will fire, and the HTTP Request (Webhook) will push the idea into ServiceNow as a new record.

 

In a ServiceNow table:

Screen_Shot_2021-07-21_at_2.00.46_PM.png

 

In a ServiceNow portal:

Screen_Shot_2021-07-21_at_2.07.28_PM.png

 

Incoming Webhooks (Passing ServiceNow Records into Brightidea)

Setting up the Webhook

In Terminal or Postman

  • Locate the pipeline ID for the initiative you want to connect to ServiceNow. Easiest method is to get it from the end of the URL in Steps or List view:

Screen_Shot_2021-07-23_at_12.36.53_PM.png

 

  • You'll now need to add a webhook through an API call to that specific pipeline that will catch an incoming requests. Here's how it will look in Postman:
    1. Grab an access token by making a request into /_oauth2/token (see: Authentication - Password Credentials Flow for details)mceclip0.png
    2. Once you have a token, you will need to POST into /_webhook/add using the token in the header and the pipeline ID in the form data.Screen_Shot_2021-07-26_at_2.15.27_PM.png
    3. If successful, you will receive a hash_id that you will be able to use in your requests from Zapier/ServiceNow:
  1.  

mceclip1.png

In Zapier

Now that we have a hash ID connected to the specific pipeline, we can set up a Zap that will use the static hash rather than an access token (the latter would need to be refreshed every hour). 

  • Begin configuring a Zap with 'New Record in ServiceNow' (Note: Currently, Zapier only includes one type of action from ServiceNow (Create Record), as more actions get added, you will be able to use those as the trigger for your webhook.)

     

    blobid0.png

 

  • Choose the table you want Zapier to watch and pull new requests from to send into Brightidea.
  • Test your trigger to make sure it's pulling records from the ServiceNow table successfully.
  • Next, configure the webhook with 'Webhooks by Zapier'  and choose "POST" as the event:

 

Screen_Shot_2021-07-26_at_2.31.07_PM.png

 

  • Configure the webhook to match the fields needed to create an Idea within Brightidea. 
    •  Required Fields:
      • hash_id: Use the hash you received in the steps listed above.
      • action: create_idea
      • title: This will be the title of your newly created idea (map it to a dynamic column header in the ServiceNow table)
      • description: This will be the description of your newly created idea (map it to a dynamic column header in the ServiceNow table)
    • Optional Fields:

 

  • Confirm via the test prompts that everything is coming through and matching up correctly.

Once the zap is correctly set up, anytime a record is added to a specific table in ServiceNow, the record will be passed into your selected Brightidea initiative as a new idea.

 

Example Workflow

 

Let's say we have a table built on the backend in ServiceNow to capture new ideas coming inbound from customers. We want to manage those ideas alongside all the ideas within Brightidea and keep everything under one roof.

 

Once the Zap is built and turned on, add a new record into the ServiceNow table.

Screen_Shot_2021-07-26_at_2.51.34_PM.png

After the ServiceNow record is added, the Zap will read the action, and fire off a POST request based on the Webhook. The idea will then be created within Brightidea:

 

Screen_Shot_2021-07-26_at_2.54.29_PM.png

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments