Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Microsoft Forms Pro / Pre-set variables by Power Automate, when survey id is not static


I had a following problem using Forms Pro survey distribution with Power Automate.
Imagine there are several surveys created with a same set of custom variables. (For example, job name, phone-number)
We'd like to distribute different surveys based on some pre-conditions and set these vairables at a flow run-time.

In 'Create Invitation link' flow action for FormsPro, we set survey id to be inherited from a previous flow action/step. (The ID is taken from some table, where it's added manually, upfront). So flow should pick-up correct survey at run-time.

But If we don't specify the exact survey ID within flow configuration, it doesn't allow to set custom variables, even so they might be simillar for every survey in our scenario.

Even if a variable is not available in particular survey, it could be ignored - it's still a relevant business case.

I've tried to adjust JSON input manually, (using flow export/import) but in this case an error is shown (like: action doesn't follow the JSON schema).

Does anyone now, if there a way to achieve that? 
I think such issue could be raised not only for FormsPro connectors...
Any help appreciated!

Community Support
Community Support


Hi @NormanYuits1 ,


Could you provide screenshots of the current Flow configuration so that we can better analyze your problems and provide you with the appropriate workaround?


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I've made a brief example. Just to understand an issue.

1) The Form Id (survey) is taken from previous step. In this case neither of variables are shown (except default ones)

2) The Form Id is specified manually at design time. Variables are shown according to specified Form.


In our case, all surveys used in a flow will have the same set of variables. Otherwise, if the variable is specified, and doesn't exist on the form (selected at run-time), it could be ignored.

----Dynamic content

Dynamics contentDynamics content

-----------------Static content - variables are shown

Static contentStatic content

What @GY is mentioned is exaclty an issue we've faced with.

It's makes flow design and maintanence extremely cumbersome, as we need to use as much "case" branches as different survey we have.
We'd like to have only one step to 'Generate survey invitation'.
@v-bacao-msft  is it clear now?

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,241)