PowerApps Template to use save ajax
- Create new Web Template.
- Copy Content to Template.
- Call template in existing template by '{% include "Wrapper AJAX Template" %}'
- include in JS File see examples/javascript.js
if (window.jQuery)
{
(function (webapi, $)
{
function request(url)
{
return webapi.saveAjax({
type:"GET",
url: url,
contentType: "application/json",
success: function (res) {
console.log(res);
}
});
}
}(window.webapi = window.webapi || {}, jQuery));
}