Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

CSOM Javascript FolderUrl not Working

$
0
0

Hi All

I'm trying to add an Item to a Folder. My problem is that the record always goes to the main root. I'm missing what?

var ctx = new SP.ClientContext(siteUrl);
var list = ctx.get_web().get_lists().getByTitle("LIST");

var itemCreateInfo = new SP.ListItemCreationInformation();
itemCreateInfo.FolderUrl = "http://URL/Lists/LIST/FOLDER";
alert(itemCreateInfo.FolderUrl);
this.litem = list.addItem(itemCreateInfo);

Thanks



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>