Skip to main content
Flow Command Reference
James Kent avatar
Written by James Kent
Updated over 8 months ago

Flow Commands

Flow Commands are special behaviours that can be triggered by setting a value in an output-enabled variable with a specific name.

Cancel

If you wish to end the execution of a MoveData flow and mark it as Failed, you can create an output-enabled Boolean variable named Cancel and set it to true. It is best practice to output a message to the execution log before you end the flow to help with context.


Break

This command is most commonly used during the “Record Match” action when finding the record for the phase. A common example is enabling a developer to select a record and skip any further entries in the phase (as there can be multiple campaigns) and to ensure the “Mapping” action does not run and overwrite the values on the determined record. To see this in action, please take a look at this knowledge base article: .

Continue

PostUpsert

ℹ️ Only applicable when used with Break and Continue commands.

If you wish to use a “Break” or “Continue” command but also want the Post-Upsert action for the phase to run, then create an output-enabled Boolean variable named PostUpsert and set it to true.

Flow Context

A flow context variable is a special variable that has been passed to a flow to inform the workflow of a specific context that is executing.

DuplicateCheck

When the “Record Match” action is executing for a Lead, Contact or Account, MoveData will execute the Salesforce Duplicate Detection Rules. In order for this to run, an in-memory Salesforce Record needs to be created and populated; this is achieved by running the “Mapping” flows as part of the “Record Match” action.

When the mapping flows run, sometimes a developer will want to apply some additional mapping rules in their flow during the “Record Match” or duplicate check. This is often because the rules for Salesforce Duplicate Detection are quite narrow.

A common example is when performing a Salesforce Duplicate Detection on a Contact, writing a phone number to multiple phone fields (such as Phone and Mobile). This is to ensure a duplicate match if the provided phone number is in either of these fields; however, when persisting the record in Salesforce, the phone number should only be persisted to one of these fields.

IsActor

There are a number of notification variables that are contextual. For example, when a donation is made, newsletter is only relevant to the donor and no other individual in the notification. When processing a notification, the IsActor variable is set to true when processing the primary contact / the contact the notification centers around.

Flow Actions

ConvertToLocalDateFlowComponent

Converts a DateTime variable into a Date variable.

Input

  • DateTime Input - DateTime (required)

  • Timezone - String: Defaults to Executing User's Timezone.

Output

  • Success - Boolean: Whether the conversion was successful.

  • Local Date Output - Date: Outputs the date in the provided timezone.

  • UTC Date Output - Date: Outputs the data using the UTC timezone (Greenwich).

WriteToLogFlowComponent

Example Execution Log Entry

Writes an entry to the Notification’s Execution Log. Please refer to -- to see how to use this component.

Input

  • Message - String (required)

  • Detail - String

  • List of Log Entries - Collection of Apex Defined (movedata__MoveDataLogEntry): Inputs any existing log entries which are appended to.

Output

  • Json Output of Log Entries - String

  • List of Log Entries - Collection of Apex Defined (movedata__MoveDataLogEntry): Outputs all log entries.

Did this answer your question?