For (Loop)

Learn how to create conditional workflows

Introduction

If and for conditional workflows allow the user to create customized workflow by applying conditional tags which filter the data to perform various insert, upsert or update operations from source to target.

Process

Let us understand the For (condition) with an example:

Use Case

Let us consider an example of a workflow between using Salesforce and we will verify the results using debugging. The workflow must result in inserting printing a Debug card with the result of the various Products associated with a specific Opportunity. a specific Opportunity from Salesforce as a Customer in QuickBooks 'IF' the name matches a desired name. In this example let the name of the account be 'SGDS' .

Result

If the workflow runs successfully, a customer named 'SGDS' is created in QuickBooks automatically from drawing all the information related to this account from Salesforce.

Methodology

  • Open a desired project

  • Click on the drop-down next to 'Task'

  • Click 'Create'

  • Enter a name for your process and click 'Select Agent'

  • From the list of option choose 'Assign to Bot' for creating an automated workflow.

  • You can choose to maintain manual tasks by choosing other options

  • Click Configure

  • You will be redirected to the 'Flow' Screen

  • Drag and drop a Flow icon. Click Configure and give a desired name for your project

  • Drag and drop a Query operation and click Configure. Define the 'Source' as Salesforce and select your account. Define the opportunity

  • Drag and drop the FOR condition

  • Click Run

  • The product listed under the oppotunity are printed as cards