Hi,
I'm trying to build an app that has a custom menu action, that is able to copy choosed list item and change some metadata automatically.
Need something to start with, this seems to fail when I try to read the item:
function getItemDetails() { appWebContext = new SP.ClientContext.get_current(); hostWebContext = new SP.AppContextSite(appWebContext, decodeURIComponent($.getUrlVar("SPHostUrl"))); selList = hostWebContext.get_web().get_lists().getById(decodeURIComponent($.getUrlVar("SPListId"))); selListItem = selList.getItemById(decodeURIComponent($.getUrlVar("SPListItemId"))); appWebContext.load(selList); appWebContext.load(selListItem, 'Title'); appWebContext.executeQueryAsync(onGetListItemSucceeded, onFail); }