I have ABC SharePoint hosted app and I have a ABClist inside ABC app, there is XYZ custom page available in host web.

Now I want to save query string URL to ABClist app list from host web's XYZ custom page (ootb page).

1 Answer 1


You need to construct post URL as shown below:

        url: _spPageContextInfo.webAbsoluteUrl + "/" + "App web name" +  "/_api/web/lists/GetByTitle('" + "App web list name" + "')/items",
        type: "POST",
        headers: {
            "accept": "application/json;odata=verbose",
            "X-RequestDigest": $("#__REQUESTDIGEST").val(),
            "content-Type": "application/json;odata=verbose"
        data: JSON.stringify(data),
        success: function (data) {
        error: function (error) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.