官术网_书友最值得收藏!

Creating and managing dialogs

A dialog differs from a workflow through the fact that it is an interactive process, where user input is required. The addition of dialogs offers new possibilities with Dynamics CRM 2011.

Getting ready

We will be using the same solution package we created earlier.

How to do it...

Adding a dialog is done by performing the following steps:

  1. Open the existing solution package, and navigate to Processes.
  2. In the Processes view, click on New to add a new process.
  3. On the Process: New window, select Dialog this time.
    How to do it...
  4. Keep New blank process selected and click on OK.
  5. The dialog configuration window allows us configure the dialog details. A dialog can be started as either an on-demand process, or as a child of another process. This allows us to create smaller dialogs, and chain them together as required to achieve our final result. We will mark this dialog as an on-demand process, so we can see the very basic functionality available.
  6. To capture user interaction, we will first add a page to the dialog, and then a Prompt and Response on that page.
    How to do it...
  7. Click on Set Properties to define the prompt and available answers.
    How to do it...
  8. Click on Save and Close to finish defining this step.
  9. In the process builder, add a new Update step that will fill in the captured details within the form field.
    How to do it...
  10. Click on Set Properties to define which value gets assigned to what field. We are being presented with the standard Contact form. Click into the First Name field, and from the Form Assistant, select New contact first name under Local Values in the Look for drop-down list, and Response Text. Click on Add and then OK.
    How to do it...
  11. Save and Close this form. Save the dialog and activate it.
  12. To test this newly created dialog, create a new Contact record, and from the ribbon, click on the Start Dialog button.
  13. From the selection window that opens up, select the dialog we created earlier.
    How to do it...
  14. Click on OK and answer the prompt question.
  15. Click on Next. When the dialog finishes, an end of dialog window is displayed. Click on Finish.
    How to do it...
  16. Once the dialog completes execution, you will see the value captured during the dialog populated into the contact's first name field.

How it works...

For demonstration purposes we have only captured the contact's first name and populated the first name field. More steps can be added to a dialog to capture additional information and guide a system user in capturing all required details through a dialog rather than by using a free form. This way a "script" can be created for the user to capture information in a specific order, thus enforcing a clean, repeatable process in dealing with customers in a Call Centre scenario.

主站蜘蛛池模板: 雷波县| 广元市| 沂南县| 裕民县| 个旧市| 菏泽市| 科技| 堆龙德庆县| 荣昌县| 凌海市| 黄龙县| 栾川县| 栾城县| 黄山市| 宜州市| 普安县| 陇南市| 犍为县| 蒙山县| 云龙县| 互助| 新津县| 怀宁县| 天长市| 舟曲县| 乌兰察布市| 荆州市| 天台县| 修武县| 玛纳斯县| 余干县| 阿图什市| 饶河县| 扶沟县| 绥德县| 合水县| 通辽市| 丘北县| 武胜县| 涪陵区| 巴彦县|