SHARE THIS POST:

How to Save Time by Making a Repeatable Dialog in CRM 2011

Dialogs in Dynamics CRM 2011 provide a way to allow users to collect and process information using step-by-step scripts. They are typically run for one record at a time, as you see in this sample dialog: How to Set a Read-Only Field and Capture a User’s Response Using a Dialog. However, in this blog we will show you how to make CRM dialogs loop so the user can repeat the same process without having to close the dialog and start a new one.

At a high level the steps are:

Create a dialog

Add a step that asks the user if they would like to repeat the process

Call the same dialog again as a child dialog

To demonstrate what this looks like, we’ll use a simple scenario where we have Education records that are associated to a Contact. A customer representative asks what education a Contact has received. Using a repeatable Dialog, a user captures all responses in one area without leaving the Contact record’s main view.

Create a new dialog by clicking on Settings, then Processes under Process Center. Then click on the New button to create a new Dialog.

Ensure that you select Dialog for the category and then click OK.

The Dialog designer will now be displayed. Select the line below Steps, then click Add Steps and select Page. Enter a description, then select the line below Page. Click Add Steps and select Prompt and Response.

Click on Set Properties. The Define Prompt and Response page will be displayed. For this example, we will capture three responses: School Name, Degree and Year.

Click Save and Close. Click on Add Step and select Prompt and Response. Repeat for all three questions.

Click on the Page section, which should highlight the entire section, then click Add Step and select Create Record. Select the Education record, then click Set Properties and map the responses entered. Click Save and Close.

Click Add Step and select Page. Enter a description and then select Add Step and select Prompt and Response. Click on Set Propertiesand fill out as depicted below.

Select the Page section for Repeat and click on the Add Step and select Check Condition. Se the condition to the following.

Select under the Check Condition and click on Add Step and select Link Child Dialog. Note: You will notice that when selecting the lookup button to select the child dialog, it will not display this Dialog. This is because we haven’t saved the Dialog and we haven’t checked the As a child process.

Check the As a Child Process at the top of the dialog and then click the Save button.

Now, use the lookup button to link this Dialog. From the list select this Dialog and click OK.

You should now have the following Dialog steps.

Once all changes are made, Activate the Dialog so it will be ready for use.

Now from the Contact record select the Dialog. After recording the three questions and creating the Education record, the Dialog will ask if you wish to repeat. If set to Yes, the Dialog will automatically repeat.

JoeCRM

Joe CRM is a CRM superhero who runs on pure Microsoft Dynamics CRM adrenaline. As the face of PowerObjects, Joe CRM’s mission is to reveal innovative ways to use Dynamics CRM and bring the application to more businesses and organizations around the world.

This used to be one of my favorite tools for quick data entry, but around 9 months ago, the behavior changed that prevented this working. I’ve found that the data entered on the initial dialog is no longer getting removed when going to the looped child dialog on the next page (so the child fields are pre-populated with whatever you entered previously). This wasn’t always the case…I’ve experienced this on multiple machines on multiple environments, all CRM Online (it started with 2011 Online and has continued with 2013). Have you ever experienced this? Any thoughts on the cause?

Michael

I have the same problem. I compile the dialog the first time and when I choose to compile it a second time the CRM show me the fields already compiled with the data of the first compilation.

I tried also with two same dialogs (like “Create Education Entries 1” and “Create Education Entries 2”) setting a loop each other but nothing change… incredible!

So I tried this:

• for the first dialog (“Create Education Entries 1”) I choose for all response “No” for the bit “Log Response”. • for the second dialog (“Create Education Entries 2”) I choose for all response “Yes” for the bit “Log Response”. Only in this case in the second dialog I see all the fields empty.

I cannot find the way to use only one dialog.

BR

Michael

Danny Larsen

Did you ever find a solution to this problem?

Danny Larsen

Did you ever find a solution to this problem?

Danny Larsen

Did you ever find a solution to this problem?

718 Washington Ave. N. Suite #101 Minneapolis, MN 55401

Phone: 612-339-3355 Toll Free: 866-770-3355 Fax: 612-339-4433

Join the Newsletter

Sign up to receive the monthly PowerObjects newsletter to receive our latest news and updates as well as invitations to upcoming events for Microsoft Dynamics 365.