cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sachinsoni441
Helper II
Helper II

Error handling in powerapps

Hello experts,

 

I have one powerapps which has some GET and POST operations to API, operations handle using power automate HTTP actions. 

I want to implement error handling, means if HTTP actions gives any error in that case how can i display custom error message on PowerApps screen. 

 

For reference i have attach below image.

GetOperation.jpg

 

What is best way to do this, please suggest.

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions

HI @sachinsoni441 ,

You set a variable to the output of the Flow.

Set(
   VariableName,
   FlowName.Run( . . . .
   )
)

Then test the variable for the message.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @sachinsoni441 ,

There are a number of ways of displaying a message - the easiest way is a Notification which using the Notify function.

The other is a label with its visible property to a variable you trigger when you need to see it.

Regarding the trigger for both of these, as you are expecting a response to your in a particular format you could trigger it testing this.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hello @WarrenBelz ,

Thanks for reply..

but how can i pass error to powerapps from flow.

HI @sachinsoni441 ,

You set a variable to the output of the Flow.

Set(
   VariableName,
   FlowName.Run( . . . .
   )
)

Then test the variable for the message.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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