OracleDB Actions¶
Actions are the operations (or API operations) that you can perform on Oracle database application.
You can simply drag and drop elements and values from input trigger, derived values using formulas or desired constant that you may wish to map with Oracle.
You can automate the Oracle query executions which you do manually otherwise.
As shown below in Figure 1, you can Create, Update, Delete, and Upsert records in database tables based on response of the trigger event.
Create Record¶
Create records in the selected database table when an event triggers.
- Select the table from the database in which you have to create a record. After the table selection, all the
Not Null
columns of your tables will be shown as required fields. - Add optional fields of the table using the
+
button. You can map field data using the data coming from the trigger or use excel functions.
For example in below Figure 2, values of multiple column fields of Oracledb table are mapped to attributes from ServiceNow.
Delete Record¶
Delete one or multiple Oracle database records in response to the event trigger. You can filter records based on the selection criteria.
- Select the table in your database from which you want to delete the records.
- Use the
Choose where condition
to add the conditions for selecting the records to be deleted. You can construct complex logic of AND and OR conditions to select the records.
For example, in Figure 3 below, from the table Incident
, all the records which have incident name same as the category
of ServiceNow incident and incident_state
equal to closed
will be deleted when an incident is updated in ServiceNow (Privileged).
Update Record¶
Update one or multiple MySQL database records in response to an event trigger. You can update the record from the table based on some condition.
- Select the table in your database which you want to update.
- Add the conditions to select the records that will be updated. You can construct the logic of conditions using complex conditional OR and AND.
- Select the updates that you want to perform on the selected records. You can use data Mapping and Transformation and excel functions. You can also use the evaluate functionality to map values for enum type columns.
In the figure below, whenever Incident updated on ServiceNow (Privileged), a record is updated in MySQL database. The database table's INCIDENT_DESCRIPTION
and INCIDENT_NAME
columns are directly mapped to attributes from ServiceNow.
For TIME_OF_INCIDENT
column, the current date and time is added using the excel function Now()
.
Upsert Record¶
Upsert operation is the combination of Update and Create(insert) operations.
Connect iPaaS
will find if a record with matching Primary Key is present in the table. If a record is found, the record will be updated with the data provided. If a record is not found, Connect iPaaS
will create a new record with the data provided. The Primary key can either be a single column or a combination of columns.
In the figure below, whenever an Incident is updated on ServiceNow (Privileged), a record is updated or added in the Oracle database. In the INCIDENT
table, INCIDENT_NAME
is the primary key.
The other columns of the table mapped with different attributes of the updated incident in ServiceNow. The TIME_OF_INCIDENT
column of database table is filled by the NOW()
function from the excel style functions.