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
1
vote
1 answer
How to update Project Online enterprise resources standard rate through REST API
We are currently deploying Project Online and I am looking at ways to sync our enterprise resources rates with our HR system.
I was planning of doing it through the REST API, but to my surprise I cannot find the standard and overtime rates as…

L. Dussault
- 21
- 3
1
vote
1 answer
Get documents created by current user with SharePoint Online Search REST API
I need to get the modified/created document of the user currently logged into SharePoint Online using rest api. I am able to get all created documents, however, I am missing the logic to retrieve the currently user logged in and add it to the rest…

user989865
- 627
- 3
- 9
- 25
1
vote
1 answer
Get Projects in Project Server 2013 using javascript
i would love to get the list of my projects from Project Server 2013 and displaying them on Sharepoint using Javascript.
Thx

Abdell
- 31
- 1
- 6
1
vote
0 answers
Zip the Documents Download multiple files then compress to one zip
How do I zip and download all the files (keeping the folder structure) from a document library using Jsom and jzip Library?
**Download multiple files then compress to one zip file using JSZip & JSZip-utils **
generate a single zip with multiple…

Lier
- 308
- 3
- 16
1
vote
2 answers
How to get all the subsites under a site collection if logged in user doesn't have permissions on site collection in sharepoint online using JSOM?
When I am trying to get the all subwebs under the site collection in Sharepoint online using jsom, if the logged in user doesn't have permissions on a site collection I am unable to retrieve the all subsites.
But I am able to get all the subsites…

Deepu
- 13
- 4
1
vote
1 answer
SharePoint Add-IN JSOM Create List Item Error. "this" is undefined
I need to have my SharePoint Add-In create a list item. I got the function from the OfficeDev Github site here. When I call the function it fails at the line where "this" first appears.
The error is:
Unable to set property 'oListItem' of undefined…

John Donnelly
- 875
- 1
- 10
- 29
1
vote
2 answers
How to call Sharepoint 2013 API by javascript in full trust solutions?
I am developing a Farm Solution (full trust) with some custom WebParts. For one WebPart i want some ajax behaviour, so i thought: Why not use the JSOM API?
My web part just want to retrieve the new Announcements, so i added a new WebPart (Farm…

Ewerton
- 4,046
- 4
- 30
- 56
1
vote
1 answer
Get file content from shared document in Sharepoint 2013 using JSOM
I have excel file in shared document in sharepoint 2013. I want to store the content of that file in array variable and send it to server side for processing.
I am getting the client context loaded,but i want to get the records present inside in the…

Surendra Mourya
- 593
- 3
- 8
- 29
1
vote
1 answer
How to retrieve term from term store SharePoint online
I have a SharePoint list and I'm retrieving metadata from my list using JavaScript, but I have one issue: how to retrieve metadata of a field that contains terms from the term store?
Here's is my code:
function getmetadata()
{
var listGuid =…

ysfibm
- 436
- 2
- 14
- 30
1
vote
2 answers
How to retrieve list items title using JavaScript
I'm trying to retrieve list items Title to insert it into a div section in my SharePoint home page, I've found this code which retrieve item URL.
it works just fine.
var clientContext = SP.ClientContext.get_current();
var list =…

ysfibm
- 436
- 2
- 14
- 30
1
vote
1 answer
Insert Multiple values for Person/Group Field using JSOM
I am creating a sharpeoint hosted app. I am uisng client side people picker control and trying to insert multiple user values in the Person/Group Field(Supervisor) and Getting this error "The user does not exist or is not unique." Below is my…

TARUN
- 241
- 1
- 8
- 27
1
vote
0 answers
How to get a particular folder in JSOM like GetFolder("FolderName") in CSOM?
I am trying to get a particular folder using JSOM, in order to set group permissions. There is group called NewGroup which should assigned to a folder called NewFolder in the Document Library called Shared Documents.
var clientContext = new…

Karuruthil Abhilash
- 11
- 3
1
vote
1 answer
Successful use of SP.SOD.executeOrDelayUntilEventNotified(func, eventName) in CSOM/JSOM?
I have used the SP.SOD.executeOrDelayUntilScriptLoaded(func, depScriptFileName) quite a bit in my JSOM (https://msdn.microsoft.com/en-us/library/ff411788(v=office.14).aspx). Has anybody out there used SP.SOD.executeOrDelayUntilEventNotified(func,…

Matt
- 38
- 8
1
vote
1 answer
How to provision Branding files using SharePoint Hosted App in SharePoint Online/Office 365?
I am looking for SharePoint Hosted App Solution which will provision Branding files (JS/CSS/Images) into SharePoint Online/Office 365 environment.
I got a very good article to achive this and tried to implement the same as shown in below link:…

Hemant Kabra
- 870
- 9
- 29
1
vote
1 answer
How to set Sharepoint Apps query string tokens from javascript
I have the following asp.net mvc sharepoint app controller
public ActionResult Index(string city)
{
var spContext = SharePointContextProvider.Current.GetSharePointContext(HttpContext);
List lsProgramate…

David Cordoba
- 61
- 1
- 3