Share

 

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.

 

PHP1

 

If you want to create dynamic CAML query in JS, you can use below methods:

Helper method:PHP2

 

PHP3

 

PHP4

 

PHP5

 

PHP6

 

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.

 

Comments

  1. Mahagun says:

    Good to read this informative piece. Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *