cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thomas
Resolver I
Resolver I

Ask in Powerapp - Remove unneeded parameter

Hi,

 

I´ve created a PowerApp, which executes a Flow.

A single Parameter is needed, to run the Flow correctly.

 

So I created a composition (GetID) with a variable: PowerApp - Text.

Saved the Flow, edit the PowerApp, added the Flow and no Parameter was there.

Same steps again and now I got 3 Variables, which I have to submit:

  1. SendPushNotificationCalendarIDnotfound_Parameters (Record)
  2. Compose_Input (Text)
  3. Compose_GetID (Text)

I have no Idea, why there is a parameter from my PushNotification.

Due to my second approach it is kind of understandable that I got two variables in my Composition.

 

But what to do with it now? I didn´t found a solution to remove the unnecessary parameter.

"Save As" did not changed anything.

 

Currently I helped myself out by submitting a random rec and an empty string:

'MyFlow'.Run(BrowseGallery1.Selected;"";ID)

But that is superfluous and hard to maintain by collegues.

 

It would be great to see the variables, which are asked in my powerapp, with the possibility to remove (and probably rename) them.

Or a button, which recreates all used variables.

 

Tanks 🙂

9 REPLIES 9
v-micsh-msft
Community Support
Community Support

Hi @Thomas,

 

Thanks for your feedback.

Sometimes the Parameter will not updated automatically after Flow has been updated.

You may consider submit this as an idea under the Flow idea forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Michael

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


@v-micsh-msft wrote:

 

Sometimes the Parameter will not updated automatically after Flow has been updated.

 


Sorry I don't understand. Is the parameter supposed to go away if you stop using it in the remaining actions of your flow?

 

@Thomas , did you ever find a solution to this one?

Possible workaround:
Create a the flow action with the same name that produced the question, add the stale question as an answer to the correct field, then, WITHOUT removing the question, delete the entire action.

You may see a message box appearing: "This step and associated dynamic content will be deleted from this flow."  This should update the trigger so that the question is removed.

I just added a new step in flow that ask a question from powerapps, and it seems the question name is set the instant you click "ask in powerapps". I realized that what I wanted to do was not really reflecting the action in the generated question, so I removed the question and renamed the step before selecting ask in powerapps again. The previous question remained and judging from the code-view of the trigger,  this will now be required in powerapps studio. This makes little sense.

To summarize: If we do a mistake like this in flow, questions not asked must be answered powerapps studio, unless you go through every stale question and remove them as suggested in the workaround.


 

Franck_Garcia
Advocate II
Advocate II

Hello,

 

I have faced the same kind of issue. To fix it, I have removed the PowerApps trigger on the top of the Flow. Then all the parameters are removed.

Next steps are:

- add a new PowerApps trigger

- click on 'Ask PowerApps' on the relevant Flow actions

- fix errors in the Flow (on actions which were using the removed parameters)

- save the Flow

 

Please note that if you wish to see the list of parameters, using 'Peek code' (right click on the trigger), you see them in a JSON format. 

How do you "add a new Power Apps trigger"? I cannot delete my trigger, or add a new trigger.

mtsyvis
Regular Visitor

Hi,

 

To remove unneeded parameters I do next steps:

  1. Copy action with unneeded parameters to Clipboard
  2. Delete this action
  3. Add deleted action from Clipboard
  4. On this step you can check that parameters were deleted by running flow

 

Then you can change parameters

 

Thanks

 

 

Vibhor
Frequent Visitor

Hi,
I faced same issue in a flow. Easy way is to delete the trigger from PowerApp step. This will remove all "Ask powerapp" parameter variables including the ones that are in use. After removal, add "trigger from Powerapp" step again and add the "Ask Powerapp parameters" again where needed. 
Cheers.

isomogy1
Regular Visitor

A workaround :
Delete the PowerApps trigger and replace it with a Manual trigger.

Save the flow.

Now replace the trigger back to PowerApps.

Rashid_NPD
Frequent Visitor

Okay. Thanks for really trying to help us with this workaround explanation. But unfortunately, it is not making any sense to me. Would you be kind in posting couple of screen shots. That would be a great help. Thank you!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,608)