My requirement is:
To pass listnames as an array to a method and concatenate the result after each success.
The problem is I'm not able to concatenate the result from the previous ajax call
handleClick = (ListName) => {
var reactHandler = this;
jquery.ajax({
url: this.props.siteUrl+ "/_api/web/lists/getbytitle('" + ListName + "')/items" ,
type: "GET",
headers:{'Accept': 'application/json; odata=verbose;'},
success: function(resultData) {
///logic???
});
}
},
error : function(jqXHR, textStatus, errorThrown) {
}
});
}