Chapter 17. Automated Processes

Creating workflows and dialogs

Automated workflow is one of the most useful features in Microsoft Dynamics CRM. Workflow is like a macro that sits in the background, watches for changes or conditions within the database, and then creates records, modifies things, or performs actions based on a pre-defined set of workflow steps.

For example, whenever a new lead is entered into the database for one of your salespeople, workflow can be configured to automatically generate a reminder e-mail to the salesperson and to create activities that aid in implementing your business process. Workflows can be created by a system administrator and applied to an entire organization, or they can be created by individuals to automate a personal business process.

Task A Workflow example: Forcing a new follow-up activity when opportunities are created

Workflow can change fields, create new records, send e-mails, and perform many routine database tasks on an automated basis. In this example, you’ll see how to create a workflow that will—every time a new opportunity is entered into the database—create a follow-up activity phone call with the prospect.

Outlook 2003/2007/2010/Internet Explorer:

  1. In the Navigation Pane, click Settings and then Processes.

  2. On the Actions toolbar, click the New button.

  3. Give your workflow a name, choose Opportunity as your entity, and select Workflow as your category. Click OK.

  4. Select the Scope for the Workflow.

  5. In the Start When section, select the trigger for the workflow. The trigger is the action (or inaction) that should cause the workflow to start.

  6. Select the Scope for the Workflow.

  7. In the Start When section, select the trigger for the Workflow, what action (or inaction) should cause it to start.

  8. On the Actions toolbar, click the Add Step drop-down and choose the Create Record option.

  9. Type a description for the workflow step. (It might be something like Create Follow-up Call.)

  10. In the Create drop-down, choose the Phone Call option.

  11. Click the Set Properties button to configure the details of the call that will be scheduled.

  12. Click Save and Close.

Task B Workflow example: Creating an e-mail when leads are created

In this book, you learn two very basic examples of workflows that can be configured in Microsoft Dynamics CRM. Keep in mind, though, that you can add multiple steps, wait conditions, child workflows, stages, and a lot more. You could literally spend an entire week creating a complex workflow. In this example, we’ll create a reminder e-mail that gets automatically sent to the owner of a lead when the lead is created.

Outlook 2003/2007/2010/Internet Explorer:

  1. In the Navigation Pane, click Settings and then Processes.

  2. On the Actions toolbar, click the New button.

  3. Give your workflow a name, choose Lead as your entity, and select Workflow as your category type. Click OK.

  4. On the Actions toolbar, click the Add Step drop-down and choose the Send E-mail option.

  5. Click the Set Properties button to configure the e-mail that will be sent.

  6. In the From field, enter the sender contact.

  7. Click your mouse in the To field. In the Form assistant on the right, make sure Lead is selected in the Look for drop-down. In the drop-down below that, choose the Owner option. Then click Add, and then OK. This will add a field placeholder to show that the e-mail should be sent to the lead owner, whoever that is.

  8. Give the e-mail a subject and body, and click Save and Close.

  9. Click Save and Close to save the workflow.

Task C Running an on-demand workflow

The workflows that we’ve created so far run automatically when a record is changed, a status changes, a record is assigned, a record is deleted, or a record attribute changes. However, you might have some workflows that you want to run on-demand. In these cases, you can highlight a record and force the workflow to perform its steps on the record at that moment.

Outlook 2010/Internet Explorer:

  1. Go to a list of records. For example, you could click Sales in the Navigation Pane and then click Contacts to go to a list of contact records.

  2. In the Process group of the ribbon, click the Run Workflow button.

  3. Select a workflow to run, and click OK.

  4. Click OK to confirm.

Outlook 2003/2007:

  1. Go to a list of records. For example, you could click Sales in the Navigation Pane and then click Contacts to go to a list of contact records.

  2. On the Contacts menu, click the Run Workflow button.

  3. Select a workflow to run, and click OK.

  4. Click OK to confirm.

Task D Creating a dialog

Think of a dialog as a wizard—the kind that you often see in Windows products. With a dialog, you can prompt the user to enter information about a record and then the system will automatically fill in that information wherever it belongs in CRM.

Outlook 2003/2007/2010/Internet Explorer:

  1. In the Navigation Pane, click Settings and then Processes.

  2. On the Actions toolbar, click the New button.

  3. Give your dialog a name, choose an entity, and select Dialog as your category type. Click OK.

  4. Add your input arguments, variables, and steps to the dialog.

  5. Click the Save & Close button and Activate when you are finished.

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.195.229