Counting increments – Connecting tasks between apps

In Flowfinity, software robots can only perform tasks and escalations in the application to which they are assigned.

However, Tasks and Escalations can be combined to connect data between applications. This Knowledge Base article shows users how to create a Task that writes data from one application to another and create a Task that effectively counts increments in a second application.

Example

Administrators need to record total site visits in a Clients application, the app should record how many times an inspection has been performed for each client. This task could be performed manually, by either an administrator or an inspector adding an increment for each inspection.

However, administrators wish to count the records for each client in their existing Site Inspections app. A software robot will count records in the Site Inspections app and use a task to maintain a running total in the Clients app.

Flowfinity - Mass record updates
Flowfinity - Mass record updates

Instructions

  1. Select the Clients app, click 'Customize this app.'
  2. Add a Numeric field to the application, configure the field as follows:
    Flowfinity - Mass record updates
  3. The Clients app should now have three fields.
    Flowfinity - Mass record updates
  4. The next step is to create an Operation in the Clients application. Navigate to the Operations tab and click 'add operation.'
  5. Name the operation 'Update Counter' and select 'Edit' as the operation type. Complete the configurationas follows and then save the Operation.
    Flowfinity - Mass record updates
  6. Next, create a new Task. Navigate to the Tasks tab and click 'add task.'
  7. Give the task the title 'Update Counter,' adding a design comment if necessary, and click 'Add action.'
    Flowfinity - Mass record updates
  8. In the Task Action Editor, name the action 'Update Counter' and provide a design comment if necessary.
    Flowfinity - Mass record updates
  9. Click on the Target tab in the Task Action Editor. Ensure the target is selected as 'Record.'
    Flowfinity - Mass record updates
  10. In the Fields tab, select 'Add mapping' and complete as follows:
    Total Site Visits , Formula, TotalSiteVisits +1
    Flowfinity - Mass record updates
  11. Save the Action.
  12. The Task should now be configured as follows:
    Flowfinity - Mass record updates
  13. Return to the Operations tab, edit the 'Update Counter' operation.
  14. In the Tasks section, click 'Add task' and select the Update Counter task to add this to the operation.
    Flowfinity - Mass record updates
  15. Save the Operation, the tab should be configured as follows:
    Flowfinity - Mass record updates
  16. Publish the Clients application, assigning a robot to perform the 'Update Counter' automation you have just created.
    Note: To learn how to create a Robot user, visit this Knowledge Base article.
  17. Navigate to the Site Inspections and click Customize this app.
  18. Configure a Lookup field in the Site Inspections app. For the Parent app, select the Clients app and select the Lookup view. The field should be configured as follows:
    Flowfinity - Mass record updates
  19. Save the form.
  20. Navigate to the Operations tab, then to the Tasks tab.
  21. Click 'Add task.'
  22. Give the Task the title 'Update Count,' adding a design comment if necessary, and click 'Add action.'
    Flowfinity - Mass record updates
  23. In the Task Action Editor, name the Action 'Update Source Record' and provide a design comment if necessary.
    Flowfinity - Mass record updates
  24. Navigate to the Target tab and complete the configuration as follows:
    Flowfinity - Mass record updates
  25. The Fields and Return tabs do not require additional configuration, and should be as follows:
    Flowfinity - Mass record updates
    Flowfinity - Mass record updates
  26. Save the Action and publish the application, assigning a robot to perform the 'Update Count' automation you have just created.

The applications are now configured to record a running total of site inspections for each client.

For example, Client D has no recorded Site Inspections.

Flowfinity - Mass record updates

An inspection is submitted for Client D in the Site Inspections app.

Flowfinity - Mass record updates
Flowfinity - Mass record updates

The robots assigned to the Site Inspections and Clients applications will trigger their tasks in succession, adding an inspection Total Visits for Client D.

Flowfinity - Mass record updates
Flowfinity - Mass record updates
Flowfinity - Mass record updates