The JavaScript Object Model (JSOM) is a SharePoint Client Object Model that enables you to work with objects on the client side without having to deploy code on the server.
Questions tagged [sharepoint-jsom]
135 questions
0
votes
1 answer
Nested context.executeQueryAsync with Deferred
How can I use nested context.executeQueryAsync with Deferred? Below is my code and I will explain what exactly I am looking for:
Code
function getValues() {
var dfd = $.Deferred(function () {
context.executeQueryAsync(function () {
…

Hemant Kabra
- 870
- 9
- 29
0
votes
2 answers
Sharepoint 2010 JSOM getEnumerator 'The collection has not been initialized. It has not been requested...'
I'm no stranger to this error or the various solutions, but this one has me scratching my head. I'm using JavaScript object model to get all a list of all the files in a given folder. I get the error on the getEnumerator in the code below. I've…

Peter Joyce
- 43
- 7
0
votes
1 answer
SharePoint JSOM Caml query on a big list
I have a list contains more than 20000 items and the number will increase.
I need to query list items using caml query from javaScript. When I am using the next query, it fails.
"

Mahmoud Magd
- 1
- 3
0
votes
1 answer
SharePoint JSOM Parsing values in a hyperlink field
I have a value that looks like "mailto:a@b.com, mailto:a@b.com'. This is basically a hyperlink field and I want to parse this properly using SharePoint JSOM. I tried SP.FieldUrlValue, but it does not seem to have a method that lets you parse.

spdev
- 361
- 3
- 9
0
votes
1 answer
SharePoint 2013 - App. Mix CSOM and JSOM?
I need to write an Office365-App. I want to use a provider-hosted MVC-Application for this.
As I want to use some kind of "API" on some pages, that returns a JSON that then is used inside JS to display data:
Can I just mix CSOM and JSOM?
Has this…

Ole Albers
- 8,715
- 10
- 73
- 166
0
votes
1 answer
Get SharePoint ClientContext via CSOM/JSOM in SharePoint Online Add-in
I have looked everywhere for a solution to this issue and have come up short. If someone could tell me the trick I would be greatful.
Scope: I am building a SharePoint add-in for SharePoint Online. In the appweb I am trying to use a web part to get…

Nick Martin
- 13
- 4
0
votes
3 answers
Sharepoint Online Upload File Form
Can I make upload file form in some sandboxed WebPart for Sharepoint Online, and if I can, how can I?
I've searched a lot and found only solutions, available for Client Object Model for outside clients, there is no example how to do this with JSOM…

GrigTheFirst
- 37
- 8
-1
votes
2 answers
How to Enumerate All Document Set File Properties Using the SharePoint JSOM
The following code successfully loops over all my files in a particular Document Library and outputs the name of each file. However, there are additional properties (custom properties/columns that are not part of the Document content type) that I…

Scott Marcus
- 64,069
- 6
- 49
- 71
-1
votes
1 answer
How to get the look up(containing multiple columns) column values into a variable using REST API and Jquery in sharepoint 2013
/* in the same way I need to get values from look up column which consisting of multiple columns from another list into a variable */
url : _spPageContextInfo.webAbsoluteUrl +…

OMNI
- 3
- 1
-1
votes
1 answer
What is the JSOM equivalent of CSOM From, Where, and Select?
I am "translating," some code from CSOM/C# to JSOM and got to a statement that is a bit unfamiliar to me. I would like to avoid mixing the CSOM and JSOM if possible the statement is as follows:
var def = from defs in publishedWorkflowDefinitions
…

贝壳 - BeiKe
- 113
- 13
-1
votes
1 answer
set lookup field & managed meta data field using jsom in sharepoint
Setting lookup field & managed meta data field value using jsom. Through jsom I will need to set the value into the list .
Setting the lookup and managed metadata columns through code

mouni
- 3
- 2
-1
votes
2 answers
How can I get all the user profiles in a site collection? (SharePoint Online O365)
How can I retrieve all the user profiles in a site collection with JSOM/CSOM or REST API ?
I find nothing that completely works, I need the following properties :
Username
Mobile
E-mail
Profile picture
Thanks in advance

hazhaz
- 19
- 5
-1
votes
1 answer
JavaScript callback execute in main thread
I am using a JSOM SharePoint call to get some values from a list. Once I get the values in the callback I want to execute the code in the main method of the thread. How do I do that?

spdev
- 361
- 3
- 9
-1
votes
1 answer
How to set task level custom field value using jsom in project server 2013 ?
Is there a way to set a task level custom field value programmatically using jsom in Project Server 2013?
Please advise.

yala_cat
- 309
- 4
- 21
-4
votes
1 answer
Attribute to refrsh the Div Tag
I have a div tag with html table which is getting data
dynamically.
I would like to refresh the div tag every 5 seconds.
Can any one help me in knowing if there is attribute for div tag to refresh it?

sam
- 35
- 1
- 6