Sp.web.lists from different site

I have the need to get list items from a different site, and the pnp js code for this I find does not seem to work, so how do I get List Items from a list on a different site (site is on the same domain as my current site/form).

Hello @sphilson,

Please see this post:

1 Like

Thank you.

Figured out my issues was I am keeping my js in an external file and could not access Web from it, added window.Web = Web to the in-form JS and was able to access it.

1 Like