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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sagar PardeshiRank #103 · 20.8K reputationPosted Nov 28, 2019, 12:42 AM EST
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:
Bhargava ChRank #1,401 · 1.2K reputationPosted Nov 28, 2019, 1:39 AM EST
Roshni GandhiRank #1,937 · 758 reputationPosted Nov 28, 2019, 1:57 AM EST
Bhargava ChRank #1,401 · 1.2K reputationPosted Nov 28, 2019, 2:05 AM EST
Sagar PardeshiRank #103 · 20.8K reputationPosted Nov 28, 2019, 4:23 PM EST
Bhargava ChRank #1,401 · 1.2K reputationPosted Nov 28, 2019, 7:02 PM EST
Sagar PardeshiRank #103 · 20.8K reputationPosted Nov 29, 2019, 12:12 AM EST
Bhargava ChRank #1,401 · 1.2K reputationPosted Nov 29, 2019, 1:18 AM EST