Manage Multiple REST Calls in SharePoint
One of the issues I encountered while working with the SharePoint REST API was managing multiple calls in a script or a function. I used the jQuery $.ajax function to perform REST calls, and it supplied a “done” function that would run after the data was successfully received. Normally this worked fine, I simply ran the code