Hello,
I'm trying to set a variable with the response of an HTTP request (custom API) using UpdateContext on a button:
The system understands the function and its response as I can pick a property from the object:
I can see on the monitor tool that when I click on the button, the HTTP request is successful:
But the variable is not getting the value and I'm not able to display any property of the response.
Any help would be much appreciate.
Solved! Go to Solution.
Does the custom API include a JSON Schema? or is it supposed to be inferred? In my experience loading JSON into a variable or collection only works if the explicit Schema is included in the HTTP response. Try invoking the call using a Flow and then return it to Power Apps using an HTTP response action which includes a schema.
Does the custom API include a JSON Schema? or is it supposed to be inferred? In my experience loading JSON into a variable or collection only works if the explicit Schema is included in the HTTP response. Try invoking the call using a Flow and then return it to Power Apps using an HTTP response action which includes a schema.
Thanks for your quick reply. Yes It's defined on the Custom API:
Yes I was thinking of using a Flow in the middle, but I was hoping not to have to use it.
I will give it a try.
That defines what is in the body, but from your screenshot in the original post it doesn't look like it supplied actual schema, just the data. I would use Power Automate as a middleman because then you can specify the actual schema.
Thanks, it worked using Power Automate 🙂
User | Count |
---|---|
252 | |
106 | |
95 | |
50 | |
39 |