Integration With ServiceNow and Interview Basics .
Integration With ServiceNow and Interview Basics .
Integration With ServiceNow and Interview Basics .
Ans:
In Simple Words, Integration is exchanging data b/w two cross platforms.
Ans:
An API (Application Program Interface) is a way for you to get information needed in a
consistent format.
For e.g., some of applications allows you to login through gmail accounts, right. Because those
applications basically using google api for the same.
Another example is weather applications, those applications are also using some api to get
information from the satellites. So, here api is actually a middle man between the two
applications.
3. What is a “ServiceNow® integration”?
Ans:
A ServiceNow integration is an information exchange between the Now Platform® and another
system or source. Integrations are essential to implementing digital workflows and creating
seamless user experiences.
Ans:
REST API integration refers to connecting with third-party applications using HTTPS requests to
access and transmit data.
REST (Representational State Transfer) is a simple stateless architecture that provides standards
between computer systems on the web, making it easier for them to communicate with each
other.
The Now Platform provides various REST APIs, which are active by default. These APIs provide
the ability to interact with various ServiceNow functionality within your application. Such
functionality includes the ability to perform create, read, update, and delete (CRUD) operations
on existing tables (Table API), insert data into, retrieve information from,
That data can be used to GET, PUT, POST and DELETE data types, which refers to the reading,
updating, creating and deleting of operations concerning resources.
• Post (used to create information)
Ans:
Simple Object Access Protocol (SOAP) is an XML-based protocol for accessing web services over
HTTP.
LDAP is the Lightweight Directory Access Protocol. It is used for user data population and User
authentication. Servicenow integrates with LDAP directory to streamline the user login process
and to automate the creation of user and assigning them roles
LDAP has two main goals:
The Import Set API allows you to interact with import set tables.
Retrieves the specified import staging record and resulting transformation result.
Inserts incoming data into a specified staging table and triggers transformation based on
predefined transform maps in the import set table.
You can define service endpoints, query parameters, and headers for a scripted REST API, as
well as scripts to manage the request and response.
Scripted REST APIs generally follow the REST architecture, but you can customize them to use
different conventions. You define scripted REST APIs using the Scripted REST Service form found
under Scripted Web Services → Scripted REST APIs.
IntegrationHub includes steps to call REST APIs, run PowerShell commands, and write scripts to
interact with other APIs. Steps are the building blocks of actions used to integrate Flow Designer
with external platforms. Actions are reusable building blocks to use in Flow Designer.
IntegrationHub provides developers with these benefits:
• Automates application logic to interact with external platforms.
• Enables SMEs to develop and share integration actions developers can leverage in
custom applications.
Ans:
• A spoke is a scoped application that includes Flow Designer or IntegrationHub actions or
subflows.
• A spoke is a logical grouping of related actions, subflows, and supporting application
files.
• Developers and Process Designers can reuse spoke logic in their own applications.
• IntegrationHub includes baseline spokes.
• Developers can obtain additional spokes from the ServiceNow Store, Share, or create
their own.
16. What is Action in flow designer?
Ans:
An action is a reusable operation that enables process analysts to automate Now Platform
features without having to write code.
17. What is Status code?
Ans:
201 Created Indicates that the request has succeeded and a new resource has been
created as a result.
202 Accepted Indicates that the request has been received but not completed yet. It is
typically used in log running requests and batch processing.
400 Bad The request could not be understood by the server due to incorrect syntax.
Request The client SHOULD NOT repeat the request without modifications.
401 Indicates that the request requires user authentication information. The
Unauthorized client MAY repeat the request with a suitable Authorization header field
404 Not Found The server cannot find the requested resource.
405 Method Not The request HTTP method is known by the server but has been disabled
Allowed and cannot be used for that resource.
500 Internal The server encountered an unexpected condition that prevented it from
Server Error fulfilling the request.
502 Bad Gateway The server got an invalid response while working as a gateway to get
the response needed to handle the request.
504 Gateway The server is acting as a gateway and cannot get a response in time for a
Timeout request.
18. Find out the difference between Table API and Import set API, when to use what.
• The Table API allows you to perform create, read, update, and delete (CRUD) operations
on existing tables.
• The API transforms incoming data based on associated transform maps. The import set
API supports synchronous transforms. The Import Set API mirrors the existing SOAP
interface.
• In table API we give table name and in import set API we give the staging table name.
• In table API we have get, put, patch, post & delete methods, In import set API we have
only get & post method.
gr.addQuery('sys_id', sys_id);
gr.query();
var body = {};
if (gr.next()) {
body.number = gr.number;
body.short_description = gr.short_description;
body.category = gr.category;
body.description = gr.description;
}
response.setBody(body);
})(request, response);
while(gr.next()){
var body = {};
body.number = gr.number.toString();
body.short_description = gr.short_description.toString();
bodylist.push(body);
}
response.setBody(bodylist);
})(request, response);
POST CODE:
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var requestBody = request.body; // can give (request.body.data) also here itself
var requestData = requestBody.data;
var inc = [];
gr.insert();
gr.addQuery('number', gr.number);
gr.query();
if (gr.next()) {
inc.push({
'Number': gr.number,
'State': gr.state.getDisplayValue(),
'Description': gr.description,
})(request, response);
PUT CODE:
Relative path: /{sys_id}
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var sys_id = request.pathParams.sys_id;
body.des = gr.description;
}
response.setBody(body);
})(request, response);
DELETE CODE:
var sys_id = request.pathParams.sys_id;
if(gr.next()){
body.number = gr.number.toString();
body.short_description = gr.short_description.toString();
gr.delete();
}
response.setBody(body);
20.What are Path Params?
Ans:
Path params are used to identify a specific resource within an API. They are typically used when
retrieving a single resource, such as a user profile or a specific product. Path params are usually
included in the URL, and they are usually the first part of the URL after the domain name.
21. What are Query Params?
Ans:
Query params are used to filter and sort the data that is returned from an API. They are typically
used when retrieving multiple resources, such as a list of products or a list of users. Query
params are usually included in the URL, and they are usually the last part of the URL.
Path params are used to identify a specific resource, while query params are used to filter and
sort the data. Path params are typically used when retrieving a single resource, while query
params are used when retrieving multiple resources.
23. What is Relative path and Resource path?
Ans:
• Relative path: Specify the unique part of the URI. The Relative path is appended to the
Base API path defined in the Scripted REST API. Enclose path parameters in { }. Users
pass values for path parameters in the service's URL.
• The Resource path field displays after the new record is saved for the first time. The
Resource path is the Base API path linked with the Relative path.
29.What is E- Bonding?
Ans:
eBonding (or e-Bonding) is a B2B software integration approach that enables the automatic
exchange of data between two business applications.
Image result for Have you worked on Email Inbound Integrations Inbound email processing
allows users to interact with your application via email. Once you've set up inbound processing,
the Transactional API handles receiving, processing, and parsing inbound email, then sends the
parsed results to your application via a webhook.
31.How to check error handling while doing any integrations?
Ans:
The very first step in any data integration error handling is to figure out what your data
integration errors are due to. The most typical errors either come from poor data connections.
They could also come from bad or missing data in the source system causing validation errors in
the target system