Categories: Microsoft Forms Pro
* IMPORTANT *
EFFECTIVE: 2020-21-07 – Microsoft announced that Forms Pro was becoming Dynamics 365 Customer Voice. While elements of this blog post may still be accurate, keep in mind that the product has change. You can review the blogs in the D635 Customer Voice category which is being added to over time.
*** NOTE: ALL INFORMATION IS ACCURATE AT DATE OF PUBLISHING ***

If you have been using Forms Pro for any length of time, you should know that the power of the survey tool lies in the ability to run flows to send survey invitations and to run flows when survey responses are received. Your flows to send out the invites should be set up when specific things occur in your databases (CDS/D365CE) or SharePoint lists, but what about when responses are received? Do you really want those flows running potentially thousands of times? Let’s look at how we can add trigger conditions to make sure we only run a flow when the survey response is linked to a specific survey.

In the past, when creating flows to run when a new survey response is received, I have done something similar to the flow below, getting the survey the response is related to, and then checking against the NAME or the ID of the survey. While these work, it does mean the flow runs EVERY SINGLE TIME there is a new response, regardless of the survey.

Instead, we can add in a trigger condition. Add the usual trigger of when a new Forms Pro survey response is created. Then, click on the ellipsis at the top right of the flow step, and then on Settings.

At the bottom of the settings area, we can add in a trigger condition. We are checking to make sure that the survey id from the survey response equals a specific id. If it doesn’t the flow will not even run.

Here is the expression needed.

@equals(triggerBody()?['_msfp_surveyid_value'], 'ef893088-9046-ea11-a812-000d3a86d545')

So how do we even get the id? If you have access to a model drive Power App (D365CE, naked CDS), you can navigate to your Forms Pro survey records, then use the Export to Excel option and download the list of records. From there, unhide the first few columns and you can access the id you need for the expression above.

What if you don’t have access to a Power App and can’t get to the ID? Simple. Create a new flow in Power Automate, and add your initial trigger step that will run when a new Forms pro survey response is created. Add in a compose action, and use the Survey (Value) from the trigger. Now go ahead and fill out your survey.

Once you have completed the survey, open up the flow which should have run successfully. From the Compose step, you now have access to the ID you need. You can remove the Compose step now if you wish, and just continue on with the rest of your flow, and add in whatever it is you want to do.

Should you want to have a flow trigger on one or more various surveys, you can use @or at the start and combine a few values in the trigger condition.

@or(equals(triggerBody()?['_msfp_surveyid_value'], 'ef893088-9046-ea11-a812-000d3a86d545'),equals(triggerBody()?['_msfp_surveyid_value'], '26301e92-7829-ea11-a810-000d3a86d545'))


Check out the latest post:
Access To Manage Consent From Lead And Contact Records


This is just 1 of 443 articles. You can browse through all of them by going to the main blog page, or navigate through different categories to find more content you are interested in. You can also subscribe and get new blog posts emailed to you directly.




14 thoughts on “Triggering Power Automate For A Specific Survey

  1. Smart! Thanks again!

    Here is a tip to easily get survey GUID:
    – install the Chrome extension ‘Level Up for Dynamics 365’
    – open the specific survey record in chrome
    – hit the Level Up icon ans select the option ‘GET RECORD ID’

    This can be done with any record in Dynamics 365 Sales

    1. Hi Henrik! Yes, great if you have Dynamics 365 and use Chrome! Thanks for letting others know about it too!

  2. Really good article Megan – I have previously done what Henrik has getting the GUID using level up but I really like like the idea of using a name of survey vs the GUID as if your deploying Flow’s to different environments you will have to go in and update the GUID each time.

  3. Thanks for a great article!
    One question: Why don’t use “msfp_sourcesurveyidentifier” (FormID) instead of “_msfp_surveyid_value” in the Trigger condition?
    It’s much easier to find, or do I miss something?

    Br // Tomas

  4. you can use the following trigger for survey identifier (and get the survey ID from survey URL) @equals(triggerBody()?[‘msfp_sourcesurveyidentifier’], ‘UMck_jU0zkqaWu5hQY9ZJUXAPRqr8xtIuKFuOHsg9S1UMjA3OTE2OUlXWTBGRTJENVdDUlBTVjhGRC4u’)

    1. Thanks Welly! 😀 Yes, that’s how I would do it now too! Much easier and you don’t have to go hunting for an ID. Thanks for the comment!

  5. Hi,
    If you are using the Forms Get Response details in a flow and manually select a form, you get the details in a easy to read format, but if you select the Form using the custom value, you get an output that gives you the answers but only the Id to the questions. Is that by design and can you get around that?

    You might have several survey’s on the go and don’t want to have to create a Flow for each one.

  6. Hi, Megan. I wanted to automate surveys using Power automate and Microsoft Forms (not Pro)- Schedule and send out CSAT surveys automatically using recurring survey feature. Can I create the flow? Need your guidance.

    1. Hi Divya, I am not sure if you can do that with regular Forms. Is there a recurring survey feature there? I don’t write about just regular forms. Sorry!

Comments are closed for this post.