0

Beginner with sp js api here.

$pnp.sp.crossDomainWeb(addinweb, hostweb).lists.getByTitle("Sites").items.get().then(function(result) {
            console.log(result);
        });

I can see it does make the request but it's returning an empty array. This is within an add-in, so it is a request from the add-in web to the host web. What beginner mistake am I making?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.