CT Mobile Workflows: Use Cases

See the common use cases and important notes working with CT Mobile Workflows.

Set up CT Mobile Workflow

CT Mobile Workflows are intended to override the logic defined by the code and perform custom business scenarios triggered in the CT Mobile app.

  • Change the values of the fields on the record itself or any other record through the relationship.

  • Trigger by events, such as after create, after update, after delete, or tapping the appropriate button.

To set up a CT Mobile Workflow and steps, go to the CT Mobile Control Panel: Workflows tab.

  • CT Mobile Workflows are available offline, do not require the CT Mobile app update, and could be downloaded during any synchronization mode.

  • CT Mobile Workflow can be applied only to one record at one time. To perform multiple actions, specify them as steps of the same CT Mobile Workflow.

Important Notes

  • Please get familiar with the full description of CT Mobile Workflow and CT Mobile Workflow Step objects.

  • The Lock/Unlock record action and the before create, before update, and before delete events are not supported yet.

  • Currently, the after create and after delete events are not supported.

  • The after update event should only trigger after a record has been edited. Currently, this action also triggers when a message is created.

Simple Scenarios

Update a Record

Every time the mobile user taps the Finish button, specific fields will be populated on the Activity record with the Planned status.

  • Specify the On Click action, the API name of the button, and evaluation criteria.

  • Specify the trigger criteria and API name of the object that runs the CT Mobile Workflow.

Workflow This record en
  • Specify the Update record action and the This record scope.

  • Specify the API name of the object to update its fields.

  • Specify API names of the fields of the selected object to populate with specific values.

Workflow Step This record en

Also, you can use reference fields in SOQL query, for example, to fill out the Website field on the custom Activity record with the value from the Website field of the related Account record.

Click to view the example

CT Mobile Workflow

Workflow Related Record SOQL Reference Field en

CT Mobile Workflow Step

Workflow Step Related Record SOQL Reference Field en

Update Related Records

Add the quantity for a corresponding POS Material record every time the status of the Activity record has changed to the Finished value.

Create a new record of CT Mobile Workflow:

  • Specify the after update event and evaluation criteria.

  • Specify the trigger criteria and API name of the object that runs the CT Mobile Workflows.

Workflow Related record en

Create a new record of CT Mobile Workflow Step:

  • Specify the Update record action and the Related records scope.

  • Specify the related object to update its field:

    • the API name of the object that runs the CT Mobile Workflow as a parent.

    • the API name of the related object.

    • the API name of the lookup field that is responsible for the relationship between the parent and related objects.

  • Specify the SOQL filter for records to update:

    • the API name of the Product object as a SOQL object.

    • the SOQL query for the Product records.

  • Specify API names of the fields of the related object to populate with specific values.

Workflow Step Related record en

Update a Parent Record

According to the criteria, update a parent Account record every time a user taps the Start button on the Activity record.

Create a new record of CT Mobile Workflow:

  • Specify the On Click action, the API name of the button, and evaluation criteria.

  • Specify the API name of the object that runs the CT Mobile Workflow.

Workflow Parent record en

Create a new record of CT Mobile Workflow Step:

  • Specify the Update record action and the Related records scope;

  • Specify the parent object to update its field:

    • the API name of the parent object.

    • the API name of the object that runs the CT Mobile Workflow as a related object.

    • the API name of the lookup field that is responsible for the relationship between the parent and related objects.

  • Specify the SOQL criteria for a parent object.

  • Specify API names of the fields of the parent object to populate with specific values.

Workflow Step Parent record en

Advanced Scenario

Create several sequential actions within the same CT Mobile Workflow. The order number for each action should be specified in the Order field.

Create a new record of CT Mobile Workflow to launch the serial of actions every time a mobile user taps the Start button on the Activity record with the Planned status.

Workflow Advanced en

Step 1: Update the status on a record

Create a new record of CT Mobile Workflow Step to set the In Progress status for the Activity record.

Workflow Step 1 Advanced en

Step 2: Link a record to the active marketing cycle

Create a new record of CT Mobile Workflow Step to link the active marketing cycle to the Activity record.

Workflow Step 2 Advanced en

Step 3: Create related records

Create a new record of CT Mobile Workflow Step to generate the Activity Data records of the Company Product Tracking record type. Found records will be filtered by the SOQL query, and their fields will be populated with appropriate values.

Workflow Step 3 Advanced en

Step 4: Update related records

Create a new record of CT Mobile Workflow Step to update the Price field on the Activity Data records if this field is blank.

Workflow Step 4 Advanced en

Step 5: Create a parent record

Create a new record of CT Mobile Workflow Step to generate a parent Account record and populate its fields.

Workflow Step 5 Advanced en

Step 6: Update a parent record

Create a new record of CT Mobile Workflow Step to update the Phone field on the Account record.

Workflow Step 6 Advanced en

Step 7: Delete related records

Create a new record of CT Mobile Workflow Step to delete the Activity Data records with the specific value in the Description field.

Workflow Step 7 Advanced en
``