Tag Info

New answers tagged


In AppManifest.xml file add Permission for your app. If you are performing CRUD operations on List Or Library then provide necessary Permission based on scope. eg: We are using Manage Permission for developer on Site Collection Scope.


You'll need to look into event handlers for this. You're probably looking for the ItemUpdated event. How to create an event receiver Also MSDN ItemUpdated event


I've edited the complete code, to match your code. And don't forget to set permissions in the Appmanifest.xml. This should work: App.js: 'use strict' var context = SP.ClientContext.get_current(); var listItems; var hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var parentContext = new SP.AppContextSite(clientContext, hostweburl); ...


Try SPList.AddItem instead of Items.Add However, I can't figure out why your code is not working! Below are some links for your reference List.AddItem() and List.Item.Add() … why two methods for same purpose SPList.Add() vs SPList.AddItem() SharePoint 2010

Top 50 recent answers are included