- 19 Aug 2024
- 5 Minutes to read
- Print
- PDF
Apex Integration Guide
- Updated on 19 Aug 2024
- 5 Minutes to read
- Print
- PDF
Apex is a new predictive and generative AI-based Enterprise Service Management (ESM) platform to turbocharge productivity, simplify work, and create delightful experiences for end users, IT teams, and executives.
Apex delivers responsive, effective, and efficient ESM capabilities with a lightweight architecture to roll out new services and resolve service requests up to 50% faster using generative AI.
Curious to learn more about Apex, refer to Apex Documentation Site.
The latest Service Automation V7SP4 enables integration with Apex which involves a few configuration procedures. Let's dig in and understand in detail.
Figure: Integration with Apex
I. Install Service Automation V7SP4 to integrate with Apex
To integrate Service Automation V7SP4 and Apex, perform the following steps:
- In IIS, create an application/virtual directory for UI. Name it OrchestrationUI.
- In IIS, create an application/virtual directory for API. Name it Summit.API.Orchestration.
- Update DB connection string in API.
- Update Apex users' details to Service Automation users' table.
- Update Product name from SUMMIT to SUMMITNTP
i. In table ORC_ITSMSettings
II. Service Automation API Config
<add key="App:ProductName" value="SUMMITNTP"/> - Access Service Automation UI URL and log in to the portal.
- Install and configure Event Listener Service and Execution Service.
II. Service Automation navigation and configuration on Apex
Service Automation configuration on Apex requires Application, Service Portal, and a Widget. Perform required changes in Service Portal and Widget.
To configure Service Portal and Widget to integrate Service Automation with Apex, perform the following steps:
- Log in to Apex and select the Role as Designer. Click Proceed.
Figure: Role selection - Click Settings icon and select Design Studio as shown below.
Figure: Settings - Design Studio
- Select Service Automation Application. Navigate to Application > Service Portal.
Select the desired Domain and Sub Domain. The Service Portal List page is displayed.
Figure: Application - Service Portal - Click the configured Service PortalID hyperlink to configure or make changes. The configuration must be changed to Maintenance state to edit or make changes. That can be done by navigating to Publish step and changing the state from Published to Maintenance.
Click Update.
Figure: Publish stepper
- Click the same ID which is now in Maintenance state to perform the configuration. In the General tab, update all the field details as per requirements and click Next.
Figure: General tab - In the Design Portal, select the Service Automation Widget and access the Settings.
Execute the following changes in Code >Javascript.
async function getUrlToRedirect(bodyCSSVariables) {
const res = await fetch("https://localhost/api.orchestration/api/auth/createssopackage", {
method: "POST",
body: JSON.stringify({
"UserId": userSession.id,
"bodyCSSVariables" :bodyCSSVariables
}),
headers: {
'Content-Type': 'application/json; charset=UTF-8',
'Access-Control-Allow-Origin': 'https://integrations.apex.com,'
}
});
return res.json();
};
Update the API URL link in fetch function. Specify the Apex application base URL under the Access Control Allow Origin function.
7. Save and Publish the Service Portal. Click the Widget and navigate to Service Automation application.
III. Configurations in Service Automation application
ITSM requires an update to the Apex API Base URL. Additionally, the Data Source should be configured to retrieve Domain, Tenant, and Users, with a corresponding update to the field mapping for these elements under Field Mapping.
- Navigate to Menu > Integrations > Manage Integrations > ITSM.
- On the ITSM Configurations page, specify the API base URL in Base URL field and validate.
Figure: ITSM Configurations page - Navigate to Menu > Integrations > Manage Integrations > Data Sources.
- Specify Apex API URL, Method Type, Headers, and Payload to fetch Domain, Tenant, and Caller.
Figure: Data Sources - Navigate to Menu > Integrations > Manage Integrations > Field Mapping.
- In the General module, update the data source name and the fields for domain and perform the Response Mapping as shown below.
- Update Proxy IP Mapping.
IV. Trigger a Workflow from Apex Service Management
To initiate a Workflow upon the creation or update of an Incident/Request, the following steps should be performed on Apex.
Prerequisites:
- Set up an API Trigger Workflow in Service Automation to retrieve and download request details
- Obtain the SA token
- To trigger the workflow for service requests log in to Apex as an Application Designer.
To configure an API by using API Trigger URL and its payload, perform the following steps:
- Navigate to Settings > Design Studio.
- Select Service Management Application.
- In the Module drop-down, select Service Request.
- Navigate to Designers > API Configuration.
- Update all the required data. Mention the Service Automation URL to trigger a specific workflow.
- Use API Trigger Workflows request details to configure the API.
Figure: API Configuration page
Figure: API Configurations Details page
To configure a business rule, perform the following steps:
- Navigate to Settings > Design Studio.
- Select Service Management Application.
- In the Module drop-down, select Service Request.
- Navigate to Designers > Business Rule Designer.
- Select the desired Domain and Sub Domain from the drop-down. Click New to configure a new business rule.
- In the General tab, under the Table field, select the Service Catalog name for which automation has to be configured.
Figure: Business Rule Designer - General tab - Specify all the required conditions in the General, Trigger, and Condition tab.
- In the Actions tab, click ADD API.
- In the Add API pop-up, update the information as shown below.
Figure: Add API
V. View Workflow details on Apex Request/Incident details page
Prerequisites:
- Create a new tab named "Automation" for the Request/Incident details form
- Make a note of the Automation tab ID
To view the workflow details, perform the following steps:
- Log in to Apex as an Analyst and navigate to Service Request > Manage Service Request.
- In the Manage Service Request List page, click the desired SR ID by using Open link in new window option.
Figure: Manage Service Request List page - In the newly opened SR details page, click Custom Script from the top panel and select Page Custom Script.
Figure: Manage Service Request Details page - In the Custom script window, Select Typescript. In the Typescript window, add /update the below script and update the Automation Tab ID and save the configuration.
$("#tab_orchestration_ZGHW7414").parent().on("click",function(){
setTimeout(function () {
__this.bindClientScript();
}, 1000);
});
In Client Script update SA API base URL in variable orchestrationAPIBaseURL and SA UI base URL in variable orchestrationUIURL. Update SA token in _token variable.
Figure: Automation tab
5. Log a Service Request for the configured catalog and navigate to Manage Service Request and open an SR which has Workflow details. Workflow details are displayed under the Automation tab.
Summary of URL Updates
The following segment provides a summary of all URL updates:
- Update Service Automation UI base URL in the following:
- SA API Application Settings Config file.
<add key="ServiceAutomationSSOUrl" value="http://localhost:4200/orchestrationui/#/authtransitionhandler?token={0}"/> - Apex, Custom Script Page custom script of IM Manage Incident or SR Manage Service Request a Client Script
var orchestrationUIURL='https://ntpautomation.symphonysummit.com/orchestrationui';
- Update Service Automation API base URL in the following:
- SA Angular fileorchestrationui\assets\config\app-config.json {
"API_Base_Url": "http://localhost/summit.api.orchestration"
} - Apex, Custom Script Page custom script of IM Manage Incident or SR Manage Service Request a Client Script
var orchestrationAPIBaseURL='https://ntpautomation.symphonysummit.com/summit.api.orchestration';
- Apex, Service Portal à Service Automation Widget Settings Code Javascript.
Update the SA API base URL in fetch method.