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

Change Powerapps label by Flow

Hello,
I want to change a label by calling a Flow.
I created a flow which returns a string.
Now I want to use this flow to change the label of a PowerApps custom formula.
But I am not able to call the flow on this way...
Did you know any other possibilities to change the label text by the return value of a flow?

image.png

 

Thanks a lot for your help

Kollin 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Change Powerapps label by Flow

Hi @KollinFreise ,

Based on the issue that you mentioned, I think there is something wrong with your operation.

 

The 'FlowName'.Run() formula is a Bahaviour function, which could only be executed within Behaviour Property, e.g. OnSelect property of a Button, the OnVisible property of a screen, OnStart property of App control, ... etc.

 

As an alternative solution, you could consider put your 'FlowName'.Run() formula within the OnStart property of the App control or OnVisible property of current screen, then save the returned result into a variable, then set the Text property of the Label to this variable. So when your app loads or your current screen is visible, the Label control would be populated with proper value returned from your flow.

I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of your current screen which contains the Label control or the OnStart property of the App control to following:

Set(
       ReturnedResult,
       PowerAppsbutton.Run("VE,VD", 0).returnedproperty
)

Note: The returnedproperty represents the property you specified in the "Response to PowerApps" action, which you want to return from your flow to your app.9.JPG

If you use "Request - Reponse" action to return value from your flow to your app, please modify above formula as below:

Set(
       ReturnedResult,
       PowerAppsbutton.Run("VE,VD", 0)
)

Then set the Text property of the Label control to following:

ReturnedResult

Please take a try with above solution, then re-load your app, check if the issue is solved.

 

Best regards,

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

View solution in original post

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Change Powerapps label by Flow

Hi @KollinFreise ,

Based on the issue that you mentioned, I think there is something wrong with your operation.

 

The 'FlowName'.Run() formula is a Bahaviour function, which could only be executed within Behaviour Property, e.g. OnSelect property of a Button, the OnVisible property of a screen, OnStart property of App control, ... etc.

 

As an alternative solution, you could consider put your 'FlowName'.Run() formula within the OnStart property of the App control or OnVisible property of current screen, then save the returned result into a variable, then set the Text property of the Label to this variable. So when your app loads or your current screen is visible, the Label control would be populated with proper value returned from your flow.

I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of your current screen which contains the Label control or the OnStart property of the App control to following:

Set(
       ReturnedResult,
       PowerAppsbutton.Run("VE,VD", 0).returnedproperty
)

Note: The returnedproperty represents the property you specified in the "Response to PowerApps" action, which you want to return from your flow to your app.9.JPG

If you use "Request - Reponse" action to return value from your flow to your app, please modify above formula as below:

Set(
       ReturnedResult,
       PowerAppsbutton.Run("VE,VD", 0)
)

Then set the Text property of the Label control to following:

ReturnedResult

Please take a try with above solution, then re-load your app, check if the issue is solved.

 

Best regards,

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

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

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

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,497)