We have tried to call web services from Nintex form for O365. We have only one button that will call weather.com web service and try to get the result back so we could process. Here are few configurations we have tried but none of them are working. If you have any idea how to make this works, the Nintex form can be used extensively in SharePoint online and O365.
1. Nintex web request control seems the west way. Try to use enterprise web request control but it does not seem to be available for Nintex form for O365. It might be only available for on-premises Nintex version, can you please confirm?
The Call http request is only available in Nintex worklfow not form. Is this correct?
2. Tried to use JavaScript action button to call custom javascript as in the following screenshots. Here are two questions.
a. The JavaScript button is only available in classic form, when this will be available in modem form?
b. Tried to configure the javaScript like posted in this blog and the similar script, the web service call always fail into the error. Do we have suggestion how to configure the web service call and retrieve the return values?
The script is like below.
function getHarryListTitle(){
alert("Before Ajax call");
NWF$.ajax({
url: "https://api.weather.gov/points/39.7456,-97.0892",
data: "",
contentType: "application/json; charset=utf-8",
type: "GET",
success: function (data) {
alert("After Ajax call");
alert(data);
},
error: function (x, y, z) {
alert("Error Ajax call"); // Always fails here!
alert(x.responseText +" " +x.status);
}
});
}
Please let us know if you have any suggestions.