Skip to content

Commit

Permalink
Added an IBM Db2 template (#335)
Browse files Browse the repository at this point in the history
* Create Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2.yaml

* Create Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2_instructions.md

* Update template-metadata.json

* Update Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2_instructions.md

* Update Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2.yaml

Updated name

* Update Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2_instructions.md

Corrections

* Update template-metadata.json

Correction

---------

Co-authored-by: Deepak Ayilliath <[email protected]>
  • Loading branch information
himani501 and Deepak-Ayilliath authored Jul 10, 2023
1 parent f40fe2f commit 44f3fc2
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: db2
type: event-trigger
triggers:
CREATED_POLLER:
input-context:
data: WQP38781_CUSTOMERISSUES
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
subscription:
createdField: CREATEDDATE
updatedField: CREATEDDATE
timeFormat: YYYY-MM-DDTHH:mm:ssZ
timeZone: UTC
pollingInterval: 1
isCreatedQueryable: true
action-interfaces:
action-interface-1:
type: api-action
business-object: incident
connector-type: servicenow
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: ServiceNow Create incident
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- business_service:
template: '{{$Trigger.Service}}'
- caller_id:
template: '{{$Trigger.CUSTOMERNAME}}'
- category:
template: database
- cmdb_ci:
template: '{{$Trigger.CONFIGURATIONITEM}}'
- number:
template: '{{$Trigger.NUMBER}}'
- opened_at:
template: '{{$Trigger.CREATEDDATE}}'
- short_description:
template: '{{$Trigger.ISSUEDESCRIPTION}}'
- subcategory:
template: db2
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
To refer to these instructions while editing the flow, open [the GitHub page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20an%20incident%20in%20ServiceNow%20whenever%20a%20new%20customer%20issue%20record%20is%20added%20to%20IBM%20Db2) (opens in a new window).

1. Click **Create flow** to start using the template.
2. Connect to your [IBM Db2 on Cloud account](https://ibm.biz/acibmdb2).
3. Connect to your [ServiceNow account](https://ibm.biz/aasservicenow).
4. Select the IBM Db2 on Cloud table through which you want to create an incident in ServiceNow.
5. To start the flow, in the banner, click **Start flow**.

Want to see the flow working? Create a new customer issue in IBM Db2, then go back to ServiceNow to see the new incident.
For more information about using this template, see [Using IBM® App Connect to interact with IBM DB2 on Cloud](https://community.ibm.com/community/user/integration/blogs/himani-bhardwaj2/2023/07/10/using-ibmappconnect-to-interact-with-ibm-db2cloud).
11 changes: 10 additions & 1 deletion resources/template-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,15 @@
"targetApps": ["db2"],
"tags": ["jira", "db2"],
"offerings": ["app connect professional"]
}
},
{
"name": "Create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2",
"description": "Use this template to create an incident in ServiceNow whenever a new customer issue record is added to IBM Db2.",
"summary": "IBM Db2 to ServiceNow",
"sourceApp": "db2",
"targetApps": ["servicenow"],
"tags": ["db2", "servicenow"],
"offerings": ["app connect professional"]
}
]
}

0 comments on commit 44f3fc2

Please sign in to comment.