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- Open the Company Management screen
- Click the Merge button to open the Company Merger Pop up screen
- Create an Actionflow on the Run Acquisition button
- Name:
RunCompanyAcquisition
- On the Actionflow canvas, toggle on
Insert excerpt |
---|
| _toggle_on |
---|
| _toggle_on |
---|
nopanel | true |
---|
| Close screen after action completes- This ensure the pop up screen closes after the acquisition has been run
- Configure the input connection point to the Company Merger form
- Map in the two CompanyID fields from the screen, CompanyIDBeingAcquired and CompanyIDDoingAcquiring
Bulk Update Action SetupA Bulk Update action is required to update the data in each table. - Create two
Insert excerpt |
---|
| _action_bulkupdate |
---|
| _action_bulkupdate |
---|
nopanel | true |
---|
| actions: one to update the Employees data and one to update the Orders data - Drag the onto each action
Update Employees Insert excerpt |
---|
| _action_bulkupdate |
---|
| _action_bulkupdate |
---|
nopanel | true |
---|
| SetupMap in the required data and set up the action to update the data with the replacement company details. - Map the attribute, CompanyIDDoingAcquiring, onto the CompanyID attribute on the table
- Drag across the attribute, CompanyIDBeingAcquired, into the drag and drop space to create an additional mapping
- On the
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
| for the Employees Bulk Update action, set the Data Retrieval Options to:CompanyID - equals
in.CompanyIDBeingAcquired
Update Orders Insert excerpt |
---|
| _action_bulkupdate |
---|
| _action_bulkupdate |
---|
nopanel | true |
---|
| SetupMap 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
Insert excerpt |
---|
| _property_settings |
---|
| _property_settings |
---|
nopanel | true |
---|
| for the Orders Bulk Update action, set the Data Retrieval Options to:Customer_ID - equals
in.CompanyIDBeingAcquired
Tip |
---|
title | Why is a Bulk Update action not needed for Order Lines? |
---|
| 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 |
---|
|
|
|