Questions tagged [jsom]

Use the JSOM to retrieve, update, and manage data in SharePoint.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

SharePoint 2010 - Is FullTextSqlQuery or similar functionality available in JSOM

It's just a small question and I already googled it, but actually I cannot find any answer to my question. So does anybody know, if there is a similar functionality available for JSOM as it is in CSOM ...
0
votes
1answer
24 views

Can't get Organization Name from AD

Good day, I have a question with getting user profile data from AD by JavaScript for SharePoint Display Form. I can get user Department by script: <SharePoint:ScriptLink ID="ScriptLink2" name="SP....
0
votes
0answers
6 views

Crud operation on Excel File present in SharePoint document Library in sharepoint

Is there any way to fetch the excel file from SharePoint document library and update the data to respective cell in excel file and download the updated excel file in SharePoint 2013 using JSOM or Rest ...
0
votes
0answers
11 views

Display a specific list view using JSOM

Below is the code that I've currently got. I can not figure out how to add in the list view properly. I've added in var views = list.get_views("view name"); but every time I do, I get a blank page. ...
0
votes
1answer
15 views

Get SharePoint user ID from name or email using JavaScript

I am building a JavaScript web part that queries a SharePoint list and generates a report based on the list data. I want to be able to get the user ID for a given user by their name or email. input - ...
0
votes
0answers
8 views

Timing of term/ taxonomy calls (smh!)

We are using client side javascript to get navigation terms from the term store and their manage navigation friendly urls as well as some custom properties for how the navigation behaves. This is the ...
0
votes
1answer
15 views

SP.MoveCopyUtil unavailable for use (SPO JSOM)

I am trying to use JSOM to programatically move existing files in a document library to a document set within the same library. I think I should be able to use SP.MoveCopyUtil.MoveFile for this ...
0
votes
1answer
30 views

Create new file, “The file *** is not checked out”

I get the error The file "Style Library/FILENAME.js" is not checked out. when uploading a new file (FILENAME.js) using the following code. var uploadFile = function (sourcefolder, scriptName) { ...
0
votes
3answers
22 views

Why does my oListItem.get_id() return -1 even though executeQueryAsync succeeded on creating of list item?

I created a function that adds an oListItem with some lookup columns as shown function on_click(){ console.log("creating new assessment") var siteUrl = _spPageContextInfo....
0
votes
0answers
21 views

Connecting web parts through Javascript in SharePoint 2013

I am working in SharePoint 2013, and I have two OOTB web parts (list view & URL filter) that I want to connect programmatically. I also want this to be a client-side solution with JavaScript, ...
1
vote
1answer
22 views

How can I fetch only AD groups not SharePoint Groups with REST API or JavaScript?

I want to fetch the a user's membership and AD groups (Not SharePoint Groups). So, how can I fetch the data using REST API or JavaScript?
1
vote
1answer
39 views

Read Comments in Tasks via JavaScript

I am trying to read the comments of a task list in SharePoint 2016 by using JavaScript. Right now I get the latest comment using: var comment = oListItem.get_item('Comments'); But how can I read ...
0
votes
0answers
21 views

When to use JSOM over REST API

Is there any specific scenario where I should use JSOM instead of REST while doing SharePoint development? I want to know is there any limitations for SharePoint REST API when comparing to JSOM.
0
votes
2answers
29 views

How to store more than 5k items in List.How to deal List Throttling issue in JSOM Sharepoint Online?

I have a list in SharePoint online having more than 5000 items. How to deal it with JSOM or REST API.
0
votes
0answers
19 views

Configure Connections of Query String URL Filter web part programmatically

I am trying to configure the connections of the query string url filter web part with JSOM. The connections do not seem to be stored in the web part's properties, so I am at a loss as for how I can ...
0
votes
1answer
25 views

AllowMultipleValues in taxonomy field in CSOM Javascript

I am trying to create a taxonomy column within JSOM , I am nearly there but I have set the type to : var fieldSchema = `<Field Type="TaxonomyFieldTypeMulti" Name="...
1
vote
1answer
18 views

Adding the metadata to a taxonomy column in JSOM

I am struggling getting taxonomy into a metadata column using JSOM. I cannot find any great learning manual for JSOM. var fieldSchema = `<Field Type="TaxonomyFieldTypeMulti" ...
0
votes
1answer
30 views

How to add non list based OOTB web parts with JSOM Sharepoint 2013

I am attempting to add a Query String Filter Url Web Part to a page programmatically with JSOM and am hitting a dead end. I see how you can add a web part if you already have the XML like in this ...
1
vote
1answer
34 views

Are there any dependencies for PS.js (Project Server JSOM)?

Because I can't seem to do what I need to get done using the REST API, I am going to try to use the Project Server JSOM in an SPFx webpart. I found instructions on how to load the SharePoint JSOM ...
0
votes
1answer
50 views

How to retrieve the SP list items without using CAML Query?

I have a SharePoint list and I need to get all items from that list without using CAML Query in JSOM. How can I do this?
0
votes
1answer
41 views

Fill SharePoint list element field (people picker) with JavaScript

I want to add a list element via JavaScript which works (almost). After the help from a user here I got this function fillStandard() { console.log("Standard"); var posInvest = "Invest"; ...
0
votes
1answer
30 views

Adding list element via JavaScript gives error

Please note that I'm doing this for the first time. I want to add an element to a list via JavaScript. Therefore, I tried this: function fillStandard() { console.log("Standard"); var ...
0
votes
2answers
43 views

How can I add CommandBar buttons in SharePoint online using JSOM?

As shown in figure I want to add button (right side by send by mail) on each CommandBar in SharePoint site?
0
votes
1answer
35 views

Import more than 10000 records from excel to sharepoint list using client side scripting

I have 32 columns and 10000 more rows. And i tried using xls.core.min.js to import data to sharepoint list. At a time i can import 4000+ only. After that it got aborted. I have checked the below site. ...
0
votes
0answers
7 views

Get all workflow tasks and their outcome associated with a SP2010 and SP2013 workflows that are operating on a given list item through JSOM or REST

I would any help that could be provided. Is this even possible (even if in separate REST or JSOM calls)?
0
votes
0answers
15 views

Display a custom Task List with Hierarchy using JSOM

We have a Task List sorted and organized with some hierarchy. We are trying to show it in a custom webpart. Unfortunately, I could not show it as it is in a Calendar View. Task 1 Sub Task 11 ...
0
votes
2answers
61 views

Access denied when adding or removing user from SharePoint user group

I am using SharePoint 2013 online. We have SharePoint groups and there the group owner can successfully add or remove the users. But when accessing the user groups through JSOM in my angular app ...
0
votes
2answers
43 views

multi call of SP.SOD.executeFunc

the problem is very clear that the call of SP.ClientContext and sp.js isnot done yet. Actually, In my master page there is the code to get those two : SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
0answers
33 views

Remove users from group with javascript

I found a script to add a user to a SP group with a button. Now I would like to have a second button that does the opposite (remove the user from the group). The first thing (adding an user) works. ...
0
votes
1answer
35 views

SharePoint training options

I'm looking for training in the SharePoint 2013/2016/2019 on-premises sphere with specific concentration on BCS solutions developed using JSOM and REST models. Does anyone have a recommendation they ...
0
votes
0answers
22 views

jQuery().SPServices “CopyIntoItems” ignores 'Fields' parameter and stores linked file in “_CopySource”

I'm trying to copy file with SPServices but my file stays 'linked' (if You open details - SharePoint says this is a copy and offers to unlink). I got my new item with another query and tried to ...
0
votes
1answer
82 views

CAML Query “Neq” not working with choice field

I an writing one CALM query as below. But seems like Neq is not working for choice field. I am getting wrong results. Does anyone know the work around. <View><Query><Where> <...
0
votes
0answers
30 views

File not found error JSOM Sharepoint file uplaod

The code was working perfectly and suddenly this error: "Request failed with error message - File Not Found. Stack Trace - undefined" comes out, can some please help me? onFileSelected(event) { ...
0
votes
2answers
252 views

Enforce File Naming Convention in a Folder inside a Document Library SharePoint Online

SharePoint Online specific. I wanted to know if it is possible to enforce file naming conventions at the folder or sub-folder level in a Document Library. For example, I have a Document library ...
0
votes
0answers
12 views

Fetch my approved tasks as a group member using Rest API

I am having an approval workflow in which I assign a task to a group using SPD designer workflow when any member of the group approves the task, the task gets completed. Now, my question is, I have ...
0
votes
0answers
14 views

Loading thread from SharePoint Discussion Board into Smart Alert

We have set up Infowise Smart Alert on our SP 2016 site to alert users when new discussion items or replies are added to a discussion board. Right now, Infowise Smart Alert currently only sends the ...
0
votes
1answer
39 views

JSOM and authentication

I am developing an Outlook Addin (JavaScript). I need to also use JSOM to connect to OneDrive for Business in that addin to upload a file. I don't know how to authenticate to use JSOM. Is there any ...
0
votes
1answer
29 views

Uncaught TypeError: visitorIDs.push is not a function

I am trying to build an array of the ID's of the users in a peoplePicker Field by using push. So far I'm not having much luck as I'm getting this error: "Uncaught TypeError: visitorIDs.push is not ...
0
votes
2answers
150 views

How to get users email address from person or group field - using JSOM

I have a field called Employee and it's a person and group field. How can i get the users email address if i have the display name or the user id. Any tip/help will be appreciated See my snippet code ...
0
votes
1answer
24 views

Copy list item and create a new one in the same List using JSOM

I have a list with items. I have added a button in the ribbon, which is opening a confirmation page(dialog window) if user is sure that he want to create a new item from the current one and redirect ...
1
vote
1answer
34 views

Hide document library from Quick Launch using JSOM

I am creating Hidden document library using SharePoint hosted App and i have to hide this hidden library from quick launch. I used below code but it's not working. function createDocumentLibrary() {...
1
vote
1answer
63 views

getting TypeError: allGroups.getByName is not a function

I am using this code example to redirect a user based on group, but I am facing this error message: TypeError: allGroups.getByName is not a function my code: <script src="https://ajax....
0
votes
0answers
20 views

How to call a sharepoint online hosted site from a independently hosted html site using JSOM?

I need to call a sharepoint online hosted site(created as a developer site) from a independently hosted html site containing JSOM and display the list items present on the sharepoint hosted site in ...
0
votes
1answer
138 views

How to make rest call to _vti_history for getting any previous version file in SharePoint

I want to make rest call or implement some JSOM mechanism to retrieve previous version file from _vti_history. For example: _vti_history/1024/Documents/Filename.docx Please guide me if this is ...
0
votes
0answers
13 views

Can we restore a document version in different share point library using jsom?

I want to know if we can restore/move specific version file using JSOM/REST to different library other than source library? Thanks, Kailash
0
votes
2answers
46 views

Get previous version file using JSOM in share point 2013

I want to get the previous version file using java script object model in SharePoint 2013 environment. Please guide me if any one is already worked on similar requirement. Thanks, Kailash
0
votes
1answer
129 views

Get file of specific version using JSOM in share point 2013

I want to get the file of specific previous versions using java script object model in SharePoint 2013 environment. Please share the code if any one is already worked on similar requirement. Thanks, ...
1
vote
1answer
51 views

Change Sharepoint task parent id via REST

I'm trying to move a subtask from one parent to another. I could change the tasks name with such a PATCH query: PATCH /sites/PWA/_api/ProjectServer/Projects('4b951130-e0b9-e911-910f-001dd8b71c8d')/...
0
votes
1answer
29 views

'n' number of CAML queries in a single executeQueryAsync function

How to execute 'n' number of CAML queries to get a different list of objects? We can use multiple clientContext.load() if we have a defined number of queries like clientContext.load(collListItem); ...
0
votes
2answers
32 views

ClientContext showing data as undefined

I had some code similar to this one for getting data from property bag. However, I am getting some error that my variables are undefined. Even site and web are shown as undefined. What could be the ...

1
2 3 4 5
17