Here is a simple function for constructing CAML Query if you have an array of strings. It is particularly helpful if the number of values(ie array length) is not constant.
If you want to create dynamic CAML query in JS, you can use below methods:
Helper method:
Posted By-
Satyam Kumar
Disclaimer: Developer’s Corner Section of ISHIR blog is contributed and maintained by independent developers. The content herein is not necessarily validated by ISHIR.
Good to read this informative piece. Thanks for sharing.