Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications


Update a Contact Record Based on a Survey Response in CRM 2011

Post Author: Joe D365 |

In this post, we're going to look at how to take a survey response in CRM 2011 and update or populate a field on the respondant's CRM record. We are going to do this using the PowerSurvey add-on and Microsoft Dynamics CRM.

For this example, I'm going to be sending out a survey to contacts in my CRM, asking them for their business phone number, using a survey. I then want that information to come back into CRM, and update their contact record with this new information. To accomplish this, I'm going to use a workflow.

  1. Before we start creating the workflow, we need to add a hidden field to the survey activity. We will use this field to copy the survey response to, and then copy from that field to the contact record. To create this hidden field:1
  2. Navigate to Settings > Customizations > Customize the system. Find the survey activity entity, and click on Forms. Then double click on the "Information" form (the main form) to open it.
  3. Update a record based on a survey response in CRM 2011

  4. Click on "New" to create a new field. Name the field, and make sure it is a text field. Click Save & Close.
  5. Find the field we just created in the list of fields on the right. Drag it somewhere onto the form, then double click on the field. Uncheck the box that says "Visible by default". This will ensure that this field is a hidden field. Click Ok.
  6. Save & Publish your customizations.

Now that we have created this hidden field, we are going to create the workflow.

  1. To start building this workflow, navigate to the settings area of CRM, click on Processes and New. Create a workflow based on the survey response entity.
  2. Make sure the workflow starts when the record is created.
  3. First add a step to change the status of the survey activity. In order to update the survey activity once it is completed, we need to reopen it.
  4. Next, we are going to add a check condition, to make sure the survey question is the "Phone number" survey question. Add a step > Check condition, and check for the phone number survey question.

  5. Next, we want to copy the response to the "Phone Number" question to the field that we created earlier – the "Survey Response – Phone Number" field on the survey activity record, so that we can copy that onto the contact record. To add this, we're going to add an Update step to our workflow. We're then going to click on Set Properties, and fill in the "Survey Response – Phone Number" field using the dynamic values form assistant on the right hand side.

  6. To give the workflow a chance to run, we're going to add a wait step, and wait two minutes after the process has started. To set the properties of the wait condition, we are going to again use the dynamic values form assistant on the right-hand side of the page.

  7. Now we're going to set this workflow aside for a minute, while we create another workflow. This is the workflow that's going to update the contact record. We're going to go back to our CRM, under Settings, Processes, and click on New. Base this new workflow off of the survey activity entity.
  8. For this workflow, we are going to activate it as a child process. Also make sure all of the "Start when" options are unchecked.
  9. Add a step to the workflow, to update the contact record. Set the properties using the dynamics values form assistant on the right-hand side of the properties section. Choose that you'd like the "Survey Response – Phone Number" field from the survey activity to populate the business phone field on the contact form. Save & close. Then Activate that Child workflow, and close the window.

  10. Navigate back to the first workflow you were creating. Add a step to start a child workflow, based on the survey activity entity. Then choose the workflow you just created.
  11. Lastly, we want to close the survey activity again. To do this, we add a Change Status step to change the status of the survey activity record back to completed.
  12. Save & Activate your workflow.

You have now created a workflow that automatically updates the Business Phone field on the Contact record, when someone submits a PowerSurvey with the "What is your phone number" question on it. This workflow can be modified or repeated for as many survey questions and as many record types as you'd like. Feel like giving it a try yourself? Visit the PowerSurvey website to download your free 30 day trial.

Happy CRM'ing!

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

One comment on “Update a Contact Record Based on a Survey Response in CRM 2011”

PowerObjects Recommends