Add, update and query SharePoint list items from CSOM using javascript - Stack Overflow

Using javascript and SharePoint's CSOM, can someone provide an example for the follow scenario: Ge

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.

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.

Share Improve this question asked Jan 25, 2013 at 3:19 pbenemypbenemy 331 gold badge2 silver badges5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

This will get you started.

MSDN - How to: Complete basic operations using JavaScript library code in SharePoint 2013

It gives examples of how to

  • Query lists and get value
  • Add/update and delete records
  • and many others mon operations

So, most of what you need to plete your scenario.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744401260a4572399.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信