cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Comparing Text answers from on PowerApps when pressing a button

Hello all, I am building a App where I am sending information to a flow and getting some Text answers. The text answers are keywords to build a conditional formula with different possibilities. The formula in OnSelect of the button is something like this: Set(COA,testingBack.Run(COC)); If(COA.Code="wrong",Notify("The code you introduced is wrong",NotificationType.Error),If(COA.CheckOut="True",Notify("The code you introduced has been already used on COA.OutTime. Please introduce a new one",NotificationType.Error),Navigate(FWP,ScreenTransition.UnCover))) As Clarification: 1. COC is the name of a Text Input. 2. I get 3 answers, the 3 are Text: - Code - CheckOut - OutTime 3. testingBack is the name of my flow. I know the formula above is wrong, as I cannot use it, and I'm sure it's not complicated. But I don't have clear what is the problem. I hope someone can clarify. Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Comparing Text answers from on PowerApps when pressing a button

I am not sure which was my problem. Might be I added some answers on the flow before I linked the flow with the Button. In any case, now the formula works. There are some changes but in general is the same structure: Set(COA,'PowerApp->Getfiles(propertiesonly),Filterarray,Compose,Select'.Run(COC)); If(COA.code="wrong",Notify("The code is wrong",NotificationType.Error), If(COA.checkout="true",Notify("The code is already used on " & COA.outtime,NotificationType.Warning),Navigate(Farewell) ))

View solution in original post

1 REPLY 1
Highlighted
Anonymous
Not applicable

Re: Comparing Text answers from on PowerApps when pressing a button

I am not sure which was my problem. Might be I added some answers on the flow before I linked the flow with the Button. In any case, now the formula works. There are some changes but in general is the same structure: Set(COA,'PowerApp->Getfiles(propertiesonly),Filterarray,Compose,Select'.Run(COC)); If(COA.code="wrong",Notify("The code is wrong",NotificationType.Error), If(COA.checkout="true",Notify("The code is already used on " & COA.outtime,NotificationType.Warning),Navigate(Farewell) ))

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,372)