Linked Questions

1
vote
2answers
367 views

CSOM: How to know if a Web has completed its creation?

I have a service that creates a Sharepoint Online site using CSOM. context.Web.Webs.Add(webCreationInformation); context.ExecuteQuery(); This site is created using a defined Template stored in the ...
0
votes
2answers
111 views

Setting property bag values only set sporadic

We have created site design/script that trigger a function app. The function app set’s some property bag values: var adminCtx = ClientContextExtension.GetAppContext("https://xxx-admin.sharepoint.com",...
1
vote
1answer
205 views

rest api to insert value in title field of list

I want to insert "100" value in my sharepoint list title field. I tried jsom but it not even giving alert. Below is the code. What change I need to make in JSOM code or can someone help with rest api. ...
4
votes
2answers
2k views

executeQueryAsync does not run success or failure statements

Whenever I call executeQuereyAsync after an update(), it does not run either the success or failure methods. Elsewhere in my code, I call it after load() and it works fine. So this works fine in my ...
2
votes
3answers
882 views

Include callback functions directly in executeQueryAsync without delegates

I am tryting to create module pattern with ExecuteQueryAsync like this: UsersMngt = (function () { getUserIdByEmail = function(email){ var clientContext = new SP.ClientContext....
4
votes
2answers
3k views

AJAX Pass variable to successhandler

Considering this sample code, how can it be changed so that it makes the 'something' variable available in the succeshandler function? var url = _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists"; ...
1
vote
1answer
1k views

Retrieve Attachment URL and Name from Custom List in SharePoint 2013 using CSOM

I have a query below is my script : <div style="text-align: left;"> <table id = "customListData" style="margin-top:-70px;" width="100%" align="right" cellspacing="0"> <...
4
votes
0answers
827 views

Sharepoint, Chart.JS and multiple charts not working

I'm relatively new to Sharepoint and am having a rather annoying issue. I am using Sharepoint 2013 and I am creating 3 donut charts all to be displayed on the same page, using chart.js. I have three ...
0
votes
1answer
261 views

find out what item id failed executeQueryAsync item creation

How can i find what item failed executeQueryAsync add item method ? this is my code : var itemArray = []; var siteUrl = "http://MySite/MM/cm"; var clientContext = SP.ClientContext.get_current(); ...
1
vote
2answers
334 views

Looping jsom getItems

I want to make a function to get data from SP list thru jsom, when i run the function with multiple items I get the error, with only one item it does work correct. Error: Uncaught Error: The ...
0
votes
1answer
45 views

Adding Data to Rest API Request which will not be processed but sent back to client afterwards

I am currently working on a method to resolve multiple users in a user picker field in my sharepoint app. For this I need the elementId which is supported by the OnValueChangedClientScript function ...
1
vote
3answers
2k views

get modified by (editor) when getting list items using CSOM/JSOM through JavaScript

I am able to get items from a list using CSOM/JSOM using JavaScript and it seems to pull in the Created By (Author) value but it does not seem to pull the Modified By (Editor) value. How can I get ...
5
votes
2answers
3k views

How can I know REST API request done?

I use in my application a request REST API which works asynchronous. How I can do to know the request is done?
0
votes
2answers
392 views

Sequential dropdown lists

I am trying to make a simple double drop down list. I have the basic structure down I believe, but I am stuck on making the javascript work correctly. I want the double drop downs to look as such: ...
0
votes
1answer
95 views

Using JSOM to get information from host web error "The collection has not been initialized"

I'm using the following code part to access the host web from a sharepoint add-in : var ctx = SP.ClientContext.get_current(); var factory = new SP.ProxyWebRequestExecutorFactory(this.appWebUrl); ctx....

15 30 50 per page