admin管理员组文章数量:1026989
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 badges1 Answer
Reset to default 3This 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.
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 badges1 Answer
Reset to default 3This 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.
本文标签: addupdate and query SharePoint list items from CSOM using javascriptStack Overflow
版权声明:本文标题:Add, update and query SharePoint list items from CSOM using javascript - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1744401258a2095212.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论