I have an API to perform a calculation
myapi.calc(int, int)
that returns another integer
I want to display that integer in a PowerApp field (really I want to do something useful with it, but for the moment displaying would be a breakthrough)
when I put the formula myapi.calc(100,100)
I get an error of 'Behavior function in a non behavior property'
So I am obviously doing something horribly wrong, but I haven't got a clue what I am missing.
Any thoughts?
Just some instructions here on how to create a custom connector - in case you haven't already
One way of doing that would be to create a Custom Connector steps on how to create from scratch
You will have some option e.g Create 'From Blank', 'Azure' or Import 'From OpenAPI', 'Postman'
Once you have your connection created and tested, you will be able to add that to your Power App
MyApi.MyAction({"Parameters"})
Store that in a collection or variable
ClearCollect(returnedValuesCollection, MyApi.MyAction({"Parameters"}).documents.value)
Another way of doing it would be to trigger a flow (Power Automate) from Power App and perform your API call in the flow and then return that value to Power App.
Steps from Power Automate:
Steps from Power Apps