is it possible to send multiple queries using CAML queries from SP-Pnp-JS inbatch?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bhargava ChPosted Nov 29, 2019, 6:18 AM
Sagar PardeshiPosted Nov 29, 2019, 5:12 AM
Bhargava ChPosted Nov 29, 2019, 12:02 AM
Sagar PardeshiPosted Nov 28, 2019, 9:23 PM
// build a query to get the next pageListItemCollectionPosition: { PagingInfo: `Paged=TRUE&p_ID=${last.ID}&p_Title=${last.Title}` },ViewXml: xml,// run the next page queryBhargava ChPosted Nov 28, 2019, 7:05 AM
Roshni GandhiPosted Nov 28, 2019, 6:57 AM
Bhargava ChPosted Nov 28, 2019, 6:39 AM
Sagar PardeshiPosted Nov 28, 2019, 5:42 AM
The simplest way is to use PnPJS library for that purpose.
$batchitself is a bit complicated when it comes to response parsing, etc. however PnPJS library hides all complicated logic inside.This is how you can query multiple lists in one HTTP request with PnPJS: