Azure MySQL Actions¶
Actions are the operations (or API operations) that you can perform on Azure MySQL database application by simple drag-drop and data mapping of elements and values from input trigger, derived values using formulas or a desired constant that you may wish to map.
All of the actions that you see below automate what you can do manually on Azure MySQL.
As shown in Figure 1, Connect iPaaS provides 4 actions for Azure MySQL on response to a trigger event.
- Create Record
- Delete Record
- Update Record
- Upsert Record
This action will create a record on response to the event trigger into a selected table.
Select the table from the database in which you have to create record. After the table selection all the
Not Null columns of your tables will be shown as required fields.
You can add optional fields of the table using the ADD (+) button. You can map fields data using trigger data or you can use Excel-style functions.
For example, as shown below Figure 2, values of
incident table multiple columns are mapped to attributes from ServiceNow.
This action will delete one or multiple Azure MySQL database records on 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.
Now you can add the conditions to select the records that will be deleted. You can construct complex logic of AND (+) and OR (OR) conditions to select the records.
For example, in Figure 3, when records are extracted from a CSV file in MFT, records are deleted based on the filters in the trigger event.
This action will update one or multiple Azure MySQL database records in response to an event trigger. You can update the record from the table based on some filters.
Select the table in your database in which you want to update the records.
Now you can add the conditions to select the records that will be updated. You can construct complex logic of AND (+) and OR (OR) conditions to select the records.
For example in figure 4 below, when records are extracted from a CSV file in MFT, records are updated in Azure MySQL based on the filters in the trigger event.
Upsert operation is the combination of Update and Create or 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 and if it is not found, Connect iPaaS will create a new record. The Primary key can either be a single column or a combination of columns.
In figure 5 below, when records are extracted from a CSV file in MFT, records with relevant ID, start_ip_address, FirstName, LastName will be updated if they already exist or created if they do not exist in Azure MySQL.