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
Ewa Namespace Javascript API Embedded Excel Web Part / Web App Dashboard - setParametersAsync method creates infinite loop
The setParametersAsync method takes a JavaScript object as it's first parameter. When I pass a literal object with a single value assigned to a key, the method calls it's callback function, executing successfully:
obj =…

Milton Robinson
- 1
- 3
0
votes
1 answer
How to retrieve multi-value Taxonomy Field from term store SharePoint online
I am trying to retrieve terms from term store using JavaScript, it work just a fine with this code:
Get the label of single taxonomy field:
var fieldValue = item.get_item("FieldName");
var fieldLabel = fieldValue.Label;
I have one issue to…

ysfibm
- 436
- 2
- 14
- 30
0
votes
1 answer
How to get items from SharePoint by Current User via REST or JSOM?
I have a SharePoint list with two columns:
users (type people, multiple values allowed)
responsible_department (type string)
I want to get the items from this list where the current user is in the ùsers` field. The field can have multiple users…

STORM
- 4,005
- 11
- 49
- 98
0
votes
2 answers
SharePoint 2013 get document library created by users in JavaScript
Hi I am trying to get all documents library only created by the logged users. With the following code I get also libraries which was not created from a user. Thank you.
function GetAllLibraries() {
var listCollection = lists.getEnumerator();
…

Doro
- 671
- 1
- 16
- 34
0
votes
1 answer
Unable to Export The Datatable
I am very new to programming and I am following the below URL to export the data table into different formats.
From below code I am unable to export the datatable.Can any one help me in knowing what went wrong into below code to export…

sam
- 35
- 1
- 6
0
votes
0 answers
Convert String as PropertyName
var listType = document.getElementById('ddlLists').value; is a string value I want that Dropdownlist value as a property for the function listCreationInfo.set_templateType(SP.ListTemplateType.**listType**);
for example
listType="GenericList"
I…

Vardhan vamsi
- 11
- 3
0
votes
1 answer
SharePoint JavaScript development without doing add-ins?
I have to create some custom functionality in SharePoint 2013 using JSOM/REST, but I don't have the administrative rights to publish an add-in to the site.
What is the procedure for creating JSOM/REST code on a SharePoint page without doing an…

gummiost
- 654
- 7
- 15
0
votes
1 answer
SP is not defined
I am trying to use JavaScript inside a Nintex Form for Office 365. When I write the code inside the Custom JavaCript block of the form settings, it works perfect. However when I use my own JavaScript file and put it into the Advanced block it…

user217648
- 3,338
- 9
- 37
- 61
0
votes
1 answer
JSOM calls forbidden in apps in anonymous mode on the first load of the page (a reload solves it)
I have an app part on a page on a publishing site.
In that app, the JSOM calls work well when the user is authenticated.
In anonymous mode, it will work only after a reload of the page containing the app part. During the first loading, I will get…

Cyril
- 134
- 1
- 4
- 15
0
votes
1 answer
Read content of SP.File object as text using JSOM
as the title suggests, I am trying to read the contents of a simple text file using JSOM. I am using a Sharepoint-hosted addin for this, the file I am trying to read resides on the host web in a document library.
Here's my JS code:
function…

LeonidasFett
- 3,052
- 4
- 46
- 76
0
votes
1 answer
Is there a REST endpoint to get a list of a project's task assignments in Project Server?
I've tried sending a request to
"/_api/ProjectServer/Projects('projectid')/Assignments", but all it does is return duplicates of the last assignment which is weird because the number of objects it returns is always equal to the number of assignments…

Shengbo1618
- 1,443
- 2
- 9
- 5
0
votes
1 answer
How to get data from SharePoint list using JSOM?
Generally we are getting data from SharePoint server object model. But i need to collect data from SharePoint List using JSOM.
My requirement is below:
There is a list called List1 with 3 columns ID, Title, Status
I need to get all those data where…

Kumar Kumar
- 1
- 1
0
votes
1 answer
Sharepoint 2013 Add-in JSOM How to get Users Profiles from specific domain?
In the organization deployed sharepoint farm 2013.
In the User Profile Service settings, three connections are created in three different domains.
I need to get all the user profiles from one specific domain (connection).
Does anyone know how to get…

rustrar
- 5
- 2
0
votes
1 answer
Sharepoint Online Add-In JSOM Fetch All Users too long
I created app in SharePoint online where I get all users with a list of their properties (http://social.technet.microsoft.com/wiki/contents/articles/25074.sharepoint-online-working-with-people-search-and-user-profiles.aspx).
the app works correctly,…

rustrar
- 5
- 2
0
votes
1 answer
Uploading a file using shrepoint hosted app with REST API
i am getting error like the the site cannot be accessed in share point hosted app.
it is occured when i moving the from one page to another page in the same app. please help me in advance
it is Default.aspx code