Tag Info

Hot answers tagged

6

Farm Solutions (Full Trust): Develop for SharePoint On-Premises only. Can use managed code and the Server Object Model. This model has been around since SharePoint 2007 and is currently the most robust and well documented. Sandbox Solutions: Develop for SharePoint On-Premises or SharePoint Online. Can currently use managed code and a limited version of the ...


3

You can use REST API to get the followed sites. Below is the REST endpoint GET http://<siteCollection>/<site>/_api/social.following/my/followedsitesuri you can get more details on below MSDN link https://msdn.microsoft.com/en-us/library/dn194080.aspx


3

Perhaps your issue has something to with something SharePoint Designer is doing. Try resetting the master page to the site definition, then download a copy of your master page from the master page gallery using the web UI. Rename the file and make a minor modification and upload it back via the web UI with the new name. Then select the new master page in ...


2

You can use following pattern try { item.Update(); } catch(SPListDataValidationException ex) { //ex.Message } https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistdatavalidationexception_members(v=office.14).aspx


2

Based on the information found on this blog you actually have to attach to the PowerShell process if you upgrade your feature like you did. . Simply pressing F5 in Visual Studio will deploy the solution, launch the browser window and attach the debugger to the w3wp.exe process. However, upgrading the feature is done in PowerShell. Running the ...


2

Check if the safe control entry is there in the web.config, if not, add it, then the masterpage should work. Basically when you "edit" the masterpage you are unghosting it and that causes the Sharepoint to use type-safe parsers for all unghosted content.


2

You need to add the OverLays to the Home Page App Part. OverLays you set for one Calendar part will not get copied over.


2

After a Save the page will get refreshed and the context is lost. The only option I can think of is to handle the button Save click event using jQuery. Other workaround Starting a Workflow on item create Handling Event Receiver ItemAdded Set SOURCE parameter so after item add it goes to a particular page. On that page add a window.load handler and execute ...


2

You could use the response header from your REST request to figure out what date (and time) the server thinks it is. You can get at that information with something like: var req = $.getJSON("/_api/web/", function(data) { console.log(data) }) // doesn't matter, just make a request call... var serverDate = req.getResponseHeader("Date"); Then you'll just ...


2

Values for a multi-select field should come back as a Collection type. The values for the Collection are available from the results property which is an array. Here's an example. My multi-select field is Color. var call = jQuery.ajax({ url: url, type: "GET", headers: { Accept: "application/json;odata=verbose" }, success: ...


1

Since SPRoleDefinitionCollection.BreakInheritance method creates unique role definitions for the current Web site, you could utilize the following method for that purpose in CSOM: using (var ctx = new ClientContext(webUri)) { ctx.Web.BreakRoleInheritance(true, true); ctx.ExecuteQuery(); }


1

Create one calculated field "Example: Notification Date" and assign the formula =Today+3 in your list setting. I had created similar due date notification email alert send to User I think you have to pause your workflow in order to run the notification email


1

Your scenario describes a Provider Hosted App. You can use the same application you already have, integrated with O365 through an App. The main enhancement you'll have to think about in this approach has to do with authentication and incorporating the different set of tokens and contexts coming from O365. The following article describes the App options: ...


1

Selecting items in folders with the REST API is a bit different than selecting items in the library itself... (like in your first example) The way that I get the items in a specific folder is with the /_api/web/GetFolderByServerRelativeUrl("<serverRelativeFolderUrl>")/files endpoint... So in your example, you want everything in ...


1

URL: The App Model depends on the fact that each App has it's own domain. This ensures that Apps are isolated from the host SharePoint site collection and from other Apps. It also helps prevent cross-site scripting. Link to access App: Users access an App the way they would access a List or Library, from a link in Site Contents. Master page: Even though ...


1

The "SharePoint Online storage usage model" is still rolling out as of 2015-01-31. Many tenants still do not have this feature deployed so likely that is why you are not seeing it in your tenant. Roadmap status for the storage usage model (http://roadmap.office.com/en-us#R-144-5167) is under the category "Rolling out". Furthermore, only yesterday (30th Jan) ...


1

You can use MaxKeywordQueryTextLength which can be increased to up to 20 KB (i.e. 20480 characters). Increasing this value beyond 20 KB is not supported. Example: PS C:\> $search = Get-SPServiceApplication | where {$_.displayname -contains "search"} PS C:\> $search.MaxKeywordQueryTextLength 4096 PS C:\> $search.MaxKeywordQueryTextLength = 8192 ...


1

Use SPWeb.WebTemplate to get the name of the template. using (SPSite thisSite = new SPSite(properties.FullUrl)) { SPWeb thisWeb = thisSite.OpenWeb(); string MyTempleName = thisWeb.WebTemplate ; }


1

Just create new forms in Designer and delete what you don't want displayed. Be sure they aren't required fields that aren't answered yet, or you'll get errors, but it's super simple.


1

A Timer Job can run on all servers by creating a job definition for each server on the farm. Though that blog post is a little conflicting with the documentation where it says that having a lock type None should have it run on all servers as well. This seems the way to go to do what you want.


1

What I'm doing is that I change the "Source" parameter in the URL, so when the user saves the form, he's then redirected to a special HTML page that is doing some stuff, and after that redirected to the original page. First, at the beginning of my form I call a JavaScript page that will: record the actual "Source" into localStorage stop the page loading ...


1

From the detail in the comments above this may be possible via InfoPath Forms, although you will need to write custom code (C# or VB) behind the forms - these will use the Exchange Web Services API to perform the checks for availability and create the event in the Calendar also. MSDN is full of information of the Exchange Web Services including code ...


1

The group membership box is a multiline text box. So you can create email addresses in format user1@domain.com; user2@domain.com Etc. and then copy and paste it into the box. Then press Share button.


1

This is not a setting what you can change. This feature comes with the View of the List or Library. This option gets displayed on the View when the view Style is set to "Default" You can read this http://www.sbrickey.com/Tech/Blog/Post/SharePoint_Feature_Request_Deploying_View_Styles to find more about the Styles and how to set it via PowerShell.


1

Open the edit form page in browser and then add a Script Editor Webpart. Edit the Snippet and use below script <script type="text/javascript"> $(document).ready(function(){ var textToAppend = "<b>Text to Insert</b><br/>"; var temp = $('select[Title="Content Type"]').parent().html(); ...



Only top voted, non community-wiki answers of a minimum length are eligible