I have a custom made Power App.
What should happen is: Add some info -> press a button and it should a) create a new item and b) update one of the fields. ( and then do some other stuff, not relevant for now..)
This is the flow: It gets the highest AnalysisNumberCounter, adds one, padds it and adds 'A#' in front. Finally it appends it to the AnalysisNumber field.
So for example, if the highest AnalysisNumberCounter is 1587, then this appends A#001588 to AnalysisNumber
The flow on its own works. But when I call it from inside a PowerApps button it doesn't append the output to the field.
This is the action of the button https://i.stack.imgur.com/9yljG.png
The important thing is that the item must be created and right afterwards updated, while still in the PowerApps, so that some other buttons can work on the newly created AnalysisNumber.
Am I missing an argument or something here?