最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin7浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论