The If Else Condition executes a journey ensuring that it is not aborted unless there's an invalid input from a user or misinterpreted data passed by one of the actions. The If Else Condition contains two conditioning blocks where a user has to configure the journey action. If the specified condition is met, the IF block action gets executed; else the journey will perform the action(s) present in the Else block. The functioning is quite similar to the IF Condition action offering a guaranteed end-to-end flow of the automation.
To understand its operation easily, let's assume a simple use case and build a journey accordingly.
Whenever a new event is created in Eventbrite, check the name of the event. If the event name contains Birthday, then save its record in a specific row of Google Sheets else, save it in another row of Google Sheets.
Trigger: Eventbrite - New event created
Condition: IF Else
Action: Google Sheets - Add row
Let's create a journey step by step by breaking the use case statement.
To set up the Eventbrite trigger "Whenever a new event is created in Eventbrite", follow these steps:
Under the Trigger section, search for the Eventbrite app and click on it. Then select the trigger event, New event, from the Triggers list.
For authorizing Eventbrite, select an existing connection from the drop-down or create a new connection. To create a new one, enter the connection name of your choice and click the Link an account button. Log in to your Eventbrite account and allow the permissions for the scopes to be accessed by Quickwork.
Select the organization in the Organization field for which you want to listen to a new event:
Now, let's use the If Else Condition feature. Under the Steps section, click the Business Logic option and select If Else Condition:
The If Else Condition block will appear with the pre-indented action bars as illustrated here:
As per our use case, the journey condition is "If the event name contains Birthday". To configure this, click on the Setup If condition block.
In the Left Value field, pass the Eventbrite trigger data by clicking from the New event Trigger output under the Data Tree Output located on the right-hand side of the journey builder. Select the Contains condition from the drop-down menu in the Condition field. In the Right Value field, enter
Birthday as the keyword. Once successfully done, your If Condition block will look like the following screenshot with a heading "If
name Contains Birthday then do":
Now, let's configure the Google Sheets - Add row action under the If condition complying with the use case statement "then save its record in a specific row of Google Sheets".
Before that, let's create a Google Sheets spreadsheet where all the triggering data gets saved. Name the sheet as Eventbrite data. Create two column headers, say Party Specific and Others. The event name containing Birthday as a keyword should get saved under the "Party Specific" column, and the rest of the events should get saved under the "Others" column:
Now, return to the journey configuration window. Click on the Please choose an action bar under the IF block and follow these steps to configure the action:
Choose the Google Sheets app from the drop-down menu in the App field.
Select the action, Add row (new version), from the drop-down menu in the Action field.
Connect the Google account using which you have created the above (Eventbrite data) spreadsheet.
Once a connection is created, you'll get the input fields of Google Sheets to be specified:
Spreadsheet: Select the Eventbrite data spreadsheet from the drop-down menu.
Sheet: Select the sheet in which the Eventbrite data spreadsheet is created. It is Sheet1 in this case.
Party Specific: This is the first column header we had created in the spreadsheet. As per the use case, we want the data to get saved under this column. Pass the Eventbrite trigger output data such as , , and as shown in the following image:
4. Others: This is the second column header we had created in the spreadsheet. As per the use case, we don't want any data to get saved under this column. Keep this field empty.
Here's how the action looks after successful configuration:
Let's configure another Google Sheets - Add row action complying with the last statement of the use case "else save it in the other row of Google Sheets".
The configuration steps for the Google Sheets - Add row action are almost the same as discussed in the previous section.
However, there's a minor change for specifying trigger data in the input fields.
As per the last statement of the use case, specify the Eventbrite trigger output data in the Others column header field and keep the Party Specific field empty. Refer to the following screenshot:
Once your trigger and action get successfully configured, click on the Save Changes button to save your journey. Then, click the Start Journey button to execute your journey. Now, whenever a new event is created in Eventbrite, the journey will first check whether the event name contains the keyword Birthday or not. If yes, then its details such as name, start time, and end time will get saved in a row under the Party Specific column of the Eventbrite data spreadsheet. If not, then the details will get saved in a row under the Others column of the Eventbrite data spreadsheet. Here's the output:
You can get granularity in the journey output by specifying more trigger output data in the action fields.
This is one of the quickest ways that Quickwork Journey Builder offers to deal with complex journeys. You can create more conditioning journeys such as:
"Whenever a new case is created in Salesforce, check its status. If the status is Escalated, then forward the case details to the CEO of the company else, send it to the support team to maintain records."
"Whenever a competitor publishes a new post on Facebook containing the keywords IoT, journeys, or automation, email the details of the post automatically to your Manager else, save its details with you."