The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
44 views

How do I get all current users from a site

I need to get all currently active (not removed users) from a site. I have the following JS that gets all the users but some of them are old users that have been removed from the site (still exists in ...
2
votes
1answer
44 views

Open modal dialog from webpart in the parent page

I have written a SharePoint application which is embedded in a page as an AppPart. Now I want to open a modal dialog in the parent page. This code opens the dialog only in the current AppPart: ...
1
vote
0answers
18 views

structuring Javascript for sharepoint code

I have been reading many articles and going through many video tutorials, they explain almost all patterns from javascript (Module pattern, Prototype pattern, Revealing Module pattern and etc) with ...
0
votes
0answers
23 views

JSOM not working in SharePoint App - Uncaught TypeError: Cannot set property 'oListItem' of undefined

Started the development of my first SharePoint hosted app. Getting stuck with creating list item in a list Kundeninfos in the appweb. Error Uncaught TypeError: Cannot set property 'oListItem' of ...
0
votes
0answers
18 views

Fetch names of subsites in Office 365 developer site using NAPA tool

I was told to find fetch the title, description and list collection of my Office 365 developer site. I have completed till that. My working code is as follows : 'use strict'; var context = ...
0
votes
1answer
68 views

JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)

I have asked myself this question several times before: Is it possible to have a JavaScript function used multiple times from multiple locations returning a promise calling ctx.executeQueryAsync, ...
0
votes
1answer
23 views

CAML query for the last document uploaded by a particular user

I'm trying to write a query using the JSOM to get the last document uploaded to a document library by the current user. The reason I'm doing this is because I have an upload button on a form and need ...
2
votes
1answer
36 views

System.UnauthorizedAccessException when accessing list with JSOM

I try to get items from a list with JSOM. But I get a System.UnauthorizedAccessException with error code 2147024891. If I navigate and authenticate to the site with a browser I am able to access the ...
1
vote
1answer
61 views

Make load variable private

I have the following function which retrieves the current user's properties: function helper_redirect(){ this.clientContext = new SP.ClientContext.get_current(); this.oWeb = ...
1
vote
0answers
22 views

Sharepoint Workaround for Mixed content (Insecure Script) Error

I am using a client side script in a SharePoint page. Since the script is hosted in other server and delivered through http, I am getting a mixed content error in javascript console. Mixed ...
1
vote
0answers
18 views

How do I get a list of followers for a content?

I need to know who is following a site a document or a tag. found how to get followers for the current user but not for a content.
1
vote
1answer
33 views

Get AD user object GUID using Client Object Model in Sharepoint

I want to extract the objectguid corresponding to a username from the AD using javascript in Sharepoint. Is it possible? I can get some properties like the current username by using ...
0
votes
0answers
35 views

Rest API create personal site enque

I'm trying to provision My Site by utilizing SharePoint JSOM or REST API. The JSOM code snippet (below) gives System.UnauthorizedAccessException and REST call gives me a 401. The goal here is to ...
1
vote
1answer
22 views

How to write data to a MySQL or SQL database?

I want to crypt a string and then store the result in a MySQL or SQL database with Sharepoint (so I can later take that value and use it inside a PHP application). Can I connect to a database and ...
1
vote
2answers
42 views

Javascript Disable event receiver firing

Are there any ways to disable event receiver firing by javascript for a list during updating data?
4
votes
3answers
96 views

Change sort order in returned ItemsCollection

I am fetching a collection of items from a list using a CAML query. The returned items are then populated in my custom HMTL table. There is, however, another HTML table for which I need the same ...
1
vote
1answer
26 views

Programmatically follow a site with JSOM but error message is a lie?

I try to follow a page with JavaScript Object Model. My solution is based on many examples in the web and should work... var siteActorInfo = new SP.Social.SocialActorInfo(); ...
7
votes
1answer
145 views

Code editor (IDE) for CSOM developement - Sharepoint

I am searching for a code editor with which I can connect to SharePoint library, like I can open a complete library in the editor, edit, save changes, which will be reflected in the library. ...
2
votes
1answer
32 views

JSOM Compare two Lists if items exists

I have the same list in two sites, one in Site1 and other in Site2. The list items are copied form site1 to site2 list and during this copy one column (RelationShipCol) has the same value as Site1 ...
-2
votes
3answers
89 views

sharepoint 2013 get ID of a user

I am looking to figure out a way to get the ID of a user, given their name, so that I can use it in a call to /_layouts/15/userdisp?ID=n, where 'n' is the ID of the user to redirect the person who is ...
0
votes
1answer
23 views

Replace a file which has a specific ID with another one

I want to replace a file with another one using JSOM, but preserving all other associated fields (like Author and other custom columns in the document library) How can I select the file I want to ...
1
vote
2answers
214 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
1
vote
1answer
464 views

Retrieve a list item based on People picker App

I have a list which contains an Employee column of a Type person or group. I have built a page which contains a people picker and nothing else. When the user selects a user from the PeoplePicker, i ...