Using javascript and SharePoint's CSOM, can someone provide an example for the follow scenario:
Get field value from the selected items in a list (ListA).
Then for each item selected, take a fields value and use it to query a different list (ListB).
If the query returns 0 rows, create item in ListB and update selected item in ListA.
Else if the query returns 1 row, update selected item in ListA.
This will get you started.
MSDN - How to: Complete basic operations using JavaScript library code in SharePoint 2013
It gives examples of how to
So, most of what you need to complete your scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With