Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
What is a Bulk Update Action?
The
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Note: Bulk Update actions will only update records in tables with the Period of Transactional.
Insert excerpt 1.09 Save Action Configuration1.09 Save Action Configuration name TablePeriod nopanel true
Insert excerpt _action_save _action_save nopanel true
vs Insert excerpt _action_bulkupdate _action_bulkupdate nopanel true
_action_save | |
_action_save | |
nopanel | true |
_action_bulkupdate | |
_action_bulkupdate | |
nopanel | true |
The key difference between
and Insert excerpt _action_bulkupdate _action_bulkupdate nopanel true
is that the Bulk Update action will not update the audit history of records where Audit Manual Changes has been enabled. Insert excerpt _action_save _action_save nopanel true
To update records and persist the audit history of the record, see 1.09 Save Action Configuration.
Creating Bulk Update Actions
- Click the
icon in the toolbar to display any existing tables in the applicationInsert excerpt _action_bulkupdate _action_bulkupdate nopanel true - Existing tables can be dragged from the Repository onto the canvas, then choose
to create a Bulk Update nodeInsert excerpt _action_bulkupdate _action_bulkupdate nopanel true
- Existing tables can be dragged from the Repository onto the canvas, then choose
- Alternatively, drag the
icon from the toolbar onto the canvasInsert excerpt _action_bulkupdate _action_bulkupdate nopanel true - In the Create Bulk Update Action window:
- Enter a Name
- Choose to Allow Audited Table to display tables with Audit Manual Changes enabled in the Table drop down
- By default, tables with Audit Manual Changes enabled are not shown in the Table drop down list
- Choose the Table from the drop down where the records will be updated
- Or click the table icon to display tables in the Repository
- Select Create Action
When creating update actions it can be useful to set up confirmation messages that allow users to confirm or cancel the update. See 1.13 Confirmation Message Configuration.
Setting Update Action Filter Criteria
A filter must be set for the Bulk Update action to run. Set this in the Data Retrieval Options section of the
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
- Choose a Data Range from:
- Latest: selects data from the latest recordsets
- All: selects data from all recordsets (default)
- Set the Filter Criteria to specify which records will be selected for deletionupdated. See Filter → Filter Details
- Incoming attributes mapped to the Bulk Update node can be referenced in the Data Retrieval Options using the syntax, ConnectorName.AttributeName, e.g. in.MyAttribute
HTML Comment | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
Worked Example
Here's a worked example using the Company Data (available from the Learning Centre).
In this example, we are using:
- A Company Management screen containing a grid of the Companies data and a card container of their associated Employees - this screen was created using the Multi-Tile template
- A Company Merger Pop up screen containing:
- two manual drop down fields of the company name's of the companies to be merged
- two string fields showing the company ID's of the companies to be merged
- a button to initiate the Actionflow - this screen was created using the Tile no Buttons template
- A Company Orders screen containing two grids of the Orders and OrderLines data - this screen was created using the Multi-Tile template
Tip |
---|
If you are completing this chapter as part of the Actionflow course and using a training instance, the data and screens have already been pre-loaded into the Actionflow Advanced Application. For this example, we'll be working on the Company Management screen. |
Excerpt | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
Bulk Update Employees and Orders for Company AcquisitionIn this example, a company is being merged into another company and we need to update the employees and orders to reflect the change. Actionflow Setup
Bulk Update Action SetupA Bulk Update action is required to update the data in each table.
Update Employees
SetupMap in the required data and set themup the action to update the data with the replacement company details Expand | | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Insert excerpt | _action_bulkupdate | _action_bulkupdate | |||||||||||||||||||||||||||||||
nopanel | true |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
CompanyID
- equals
in.CompanyIDBeingAcquired
Update Orders
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Map in the required data and set up the action to update the data with the replacement company details.
- Map the attribute, CompanyIDDoingAcquiring, onto the Customer_ID attribute on the table
- Drag across the attribute, CompanyIDBeingAcquired, into the drag and drop space to create an additional mapping
- On the
for the Orders Bulk Update action, set the Data Retrieval Options to:Insert excerpt _property_settings _property_settings nopanel true Customer_ID
- equals
in.CompanyIDBeingAcquired
Tip | ||
---|---|---|
| ||
The OrderLines data has a direct relationship with the Orders data via the OrderID. The OrderLines data has an indirect relationship with the Companies data via the OrderID, therefore, updating the Orders data is sufficient. |
Expand | ||
---|---|---|
| ||
Testing
- Close all screens and reopen the Company Management screen
- Choose Decide which two companies to merge and make you will merge
- Make a note of their employees on the Company Management screen so you can see if the merge is successful
- Open the Company Orders screen and make a note of any Orders and Order Lines for the two companies
- On the Company Management screen, click the Merge button to open the Company Merger Pop up screen
- Select the two companies to merge using the drop down fields and click the Run Acquisition button
- Review the screens to check the merge was successful
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|