cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NormanYuits1
Level: Powered On

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

Hello,

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!
Thanks!


3 REPLIES 3
Community Support Team
Community Support Team

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

 

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.
GY
Level: Powered On

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

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

Flow-with-Dynamic-Expression.jpgDynamics content

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

Flow-with-Static-Value.jpgStatic content

NormanYuits1
Level: Powered On

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

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

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,819)