Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Integrating EcoStruxure IT Expert and ServiceNow

EcoStruxure IT Expert API

See how to access the EcoStruxure IT Expert API to integrate EcoStruxure IT into your environment. A valid IT Expert subscription is required.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure IT Help Center
  • EcoStruxure IT Help Center Categories
  • IT Expert
  • EcoStruxure IT Expert API
  • Integrating EcoStruxure IT Expert and ServiceNow
Options
  • Subscribe to RSS Feed
  • Mark as New
  • Mark as Read
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close

Related Forums

  • EcoStruxure IT forum

  • APC UPS Data Center & Enterprise Solutions Forum

Previous Next

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite

EcoStruxure IT Support

Submit a support request for additional assistance with EcoStruxure IT software.

Request Support
Back to EcoStruxure IT Expert API
Options
  • Subscribe to RSS Feed
  • Mark as New
  • Mark as Read
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
1 Like
1118 Views

Link copied. Please paste this link to share this article on your social media post.

Trying to translate this page to your language?
Select your language from the translate dropdown in the upper right. arrow
Translate to: English
  • (Français) French
  • (Deutsche) German
  • (Italiano) Italian
  • (Português) Portuguese
  • (Русский) Russian
  • (Español) Spanish

Integrating EcoStruxure IT Expert and ServiceNow

Sisko JLehr Sisko
‎2024-12-09 01:36 PM

There is a delay making the example application available on the GitHub repository. 

Please check back for updates.

 

Integrating EcoStruxure IT Expert and ServiceNow allows you to streamline IT operations, enhance efficiency, and effectively manage incidents within a single organization.

 

This guide provides an example EcoStruxure IT application to integrate with ServiceNow.

The example application polls data from IT Expert and creates incident tickets in ServiceNow based on incoming alarms.

The example application will be available soon.

 

Before proceeding with the integration, make sure the prerequisites are met.

Refer to the appropriate guide for assistance.

 

Table of Contents

 

  • Prerequisites
  • Set up the example application
    • Fork the EcoStruxure IT example application in GitHub
    • Import the example application into ServiceNow
    • Fetch information from IT Expert
  • How the application works
    • How job polling works
    • How the new ServiceNow incident record is created
  • Appendix
    • How to create an API key in IT Expert
    • How to get your IT Expert organizationId

 

Prerequisites

 

  • EcoStruxure IT Expert API key  Learn more...
  • Organization ID for the organization to be integrated in IT Expert  Learn more...
  • A GitHub account  Learn more...
  • A running ServiceNow instance configured with the GitHub account  Learn more...

 

Set up the example application

 

Fork the EcoStruxure IT example application in GitHub

 

ServiceNow leverages GitHub to allow application repositories to import other applications and use them within the Developer Site.

 

A fork is a copy of a repository. Forking a repository allows you to freely make changes to the code without affecting the original project.

The Readme is added to the example application.

Make sure ServiceNow is configured with your GitHub account. You can then fork the repository.

 

See how to fork the repository:

 

  • https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/servicenow_application_develop...
  • https://developer.servicenow.com/dev.do#!/guides/xanadu/developer-program/github-guide/using-service...

 

Import the example application into ServiceNow

 

Once the repository has been forked and imported into your ServiceNow instance, you need to include the the API key for IT Expert and your organizationId.

 

The imported example application is intentionally disabled by default. To start using the application, create a new record:

 

  1. Navigate to the EIT_POLLING_STATE table and insert a new row.
  2. Enter the following information into the form:
  • Config organization ID: The ID of your organization in IT Expert
  • Config host: http://api.ecostruxureit.com
  • Config API token: The API key generated in IT Expert
  • Job name: polling.1
  • The job name can be changed but will require changes in the JavaScript code. Make sure that your API key and organization ID are valid.
  1. Click Submit to save the new record.

 

Fetch information from IT Expert

 

To start fetching information from IT Expert:

 

Go to Scheduled Script Execution and enable the script EIT_POLL_ALARMS_WITH_INVENTORY.

This will start an automatic process of polling information from IT Expert.


Once the script is running correctly, proceed to initiate the business rule that will create the incident tickets in ServiceNow.

 

To verify that incidents are being created by alarms fetched from EcoStruxure IT, copy an Ind sys ID in the EIT_POLLING_STATE table and paste it into the ServiceNow Sys ID search.

 

 

How the application works

 

The sample application runs on ServiceNow. It polls alarm and inventory data from EcoStruxure IT using its API. For each new alarm, it creates a new ServiceNow incident.

 

The new incident includes information from the alarm and details from the inventory data that the alarm references, such as device labels and location labels.

 

ITE ServiceNow integration 1.png

 

 

The application is built using the following ServiceNow components:

 

Component Description
Custom tables

The application stores all fetched data in tables and performs data manipulation exclusively using these tables.

One reason for this approach is to avoid handling data in memory due to limitations in the ServiceNow JavaScript Runtime.

 

See Create a table

Classic business rules

The business rule is triggered each time a new alarm is created. The rule logic includes retrieving additional information from the inventory custom table and creating the incident record.

 

See Business rules

Scheduled script executions

Performs the periodic fetching of data from EcoStruxure IT

 

See Scheduled script executions and events objectives

 

Outbound REST web services

Representation of EcoStruxure IT API endpoints

 

See Outbound REST API web service

 

 

 

How job polling works

 

ServiceNow executes the polling job periodically.

 

At the beginning of each cycle, the polling job reads its state and configurations from the eit_polling_state table.

 

First, it checks whether it's time to fetch the entire state snapshot of the inventory data. If not, it checks if it's the right time to fetch recent changes in the inventory data.

This step is performed before fetching the alarm data to ensure that any new events have corresponding inventory data available.

 

The next step is to determine if it's time to load the entire alarm state snapshot or just the alarm delta changes.

At the end of the job, the time of the current cycle is saved in the eit_polling_state table for future self during the next execution cycle.

The result of the polling job is that the latest inventory and alarm data fetched from EIT is stored in the eit_inventory and eit_alarm tables, respectively.

 

ITE ServiceNow integration 2.png

 

How the new ServiceNow incident record is created

 

The polling job ensures that the latest inventory and alarm data is fetched from EIT and saved into the appropriate tables.

 

When a new alarm is saved into the alarm table, ServiceNow initiates a business rule.

This business rule takes the new alarm as input. It looks up device labels using the device ID from the alarm and retrieves location labels based on the same ID.

 

The rule then constructs a text string from the alarm ID, alarm message and label, location labels, and device labels. This text is used as the incident description when creating a new record in the incident table.

 

At the end of the business rule, the system saves the incident system ID and alarm ID into a special table called eit_alarm_to_incidents for maintenance purposes.

 

 

Appendix

 

How to create an API key in IT Expert

See Getting access to the IT Expert API as an end user

 

  1. Log in to IT Expert.
  2. Go to Administration > More > API.
  3. Generate a key.

IMPORTANT: For security purposes, you are required to copy the key when it is created. Save the key in a safe place. Your key cannot be retrieved. If it is lost, you will have to delete it and create a new one.

 

How to get your IT Expert organizationId

 

  1. Go to https://api.ecostruxureit.com/rest/
  2. To authorize yourself, click Authorize and enter your API key. The key is case sensitive - be sure to type it correctly.
  1. Open the first tab in the Organization section.
  2. Click Try it out and then execute.
  3. Copy and save the organizationId listed in the response body in a safe place.

If the execution returns an unauthorized error, you have entered the wrong API key.

 

Was this article helpful? Yes No
0% helpful (0/1)

Link copied. Please paste this link to share this article on your social media post.

Comments
PVerdieu
PVerdieu
Cadet
  • Mark as Read
  • Mark as New
  • Bookmark
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2025-03-28 06:37 AM

@JLehr The GitHub repo is empty...

0 Likes
JLehr
Sisko JLehr Sisko
Sisko
  • Mark as Read
  • Mark as New
  • Bookmark
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2025-04-01 04:10 AM

Hi @PVerdieu 

 

Thanks - I'll look into this.

0 Likes
JLehr
Sisko JLehr Sisko
Sisko
  • Mark as Read
  • Mark as New
  • Bookmark
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2025-04-03 08:34 AM

Hi @PVerdieu,

 

Thanks for pointing this out. There is a delay making the example application available on GitHub.

This article will be updated once it is available.

0 Likes
PVerdieu
PVerdieu
Cadet
  • Mark as Read
  • Mark as New
  • Bookmark
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2025-04-03 08:36 AM

@JLehr Great, thanks, looking forward to your solution to be online 🙂

1 Like
Didn't find what you are looking for? Ask our Experts
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of