Tag Info

Hot answers tagged

5

Terms are the basic unit or smallest item in Managed Metadata or Taxonomy. TermSet is just a collection of Terms.Like say if you want to create a taxonomy for countries and their cities. Country will become the TermSet (eg:England) and cities will be Terms inside respective termsets ie London will be term inside England. Tags are special terms , they are ...


4

The big difference between Keywords and Terms are that Terms are controlled by you (normally) and Keywords are controlled by the users. Sometimes Keywords are referred to as Folksonomy whereas Terms are referred to as Taxonomy. To use Terms to tag a document, create a custom Site Column and map that to a TermSet (which is a collection/hierarchy of Terms), ...


3

SPList list = web.Lists["Notifications Group"]; foreach (SPListItem item in list.Items) { string fieldValue = item["Specific users"].ToString(); SPFieldUserValueCollection users = new SPFieldUserValueCollection(web, fieldValue); foreach (SPFieldUserValue userValue in users) { SPUser user = userValue.User; //Do something with ...


3

Instead of a network credential, you will need a SharePoint Online Credential: http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.sharepointonlinecredentials_members(v=office.15).aspx


3

It does not work well OOTB, but there are serveral modified versions available. Here is Twitter Bootstrap for 2010 (and some 2013) Here is Bootstrap 2 for SharePoint 2010 (beta) Here is Bootstrap 2 for SharePoint 2010 (beta) Here is Bootstrap 3 for SharePoint 2013 (beta)


2

There is an upper limit on list items in SharePoint Online but it is much higher than 20,000 items. Here is a 21,100 item list I created earlier on SharePoint Online: I haven't proven it, but I believe the upper limits for items in lists in SharePoint Online are the same as for SharePoint 2013 described here (30,000,000 items) You may be getting confused ...


2

Use AppCatalog class for this. Proof of concept below: class StackExchangeProof { static void Main(string[] args) { var login = "admin@yourdomain.onmicrosoft.com"; var password = "YourHardP@ssw0rd"; var url = "https://yourdomain.sharepoint.com"; var creds = new SharePointOnlineCredentials(login, ...


2

First, your load is wrong like MdMazzotti pointed out. But you don't update your field, you'll have to load it into your context again and executeQueryAsync again inside your success function. But you could just load everything up in initialize(): function initialize(){ var context = new SP.ClientContext.get_current(); var web = ...


2

When a template is specified, the data is returned from all lists of that type and as mentioned by @Robert, you will then need to filter the returned object. However, there is other way in which you can specify the IDs of the lists instead of template. Example: <Lists> <List ID="7A9FDBE6-0841-430a-8D9A-53355801B5D5" /> <List ...


2

It is not a bug.Site Templates does not retain the Security settings.Site templates do not include the following items: Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing pages and publishing sites, My Sites, and ...


2

Inside the custom page that you're opening in a popup, add a checkbox or button (Don't show this again), then bind click handler that creates a cookie (username, showPopup) Inside your function, function initialize() { var context = new SP.ClientContext.get_current(); var web = context.get_current(); // 1. get current username // 2. check if the ...


2

Yes that is possibile. You have to modify a file under Master pages and page layouts of your site. When you click there you will have a list of directory. So go trough: Display Templates -> Search -> Item_Default_HoverPanel.js My suggestion is have a copy of that file and the *Item_Default.js* on your system. Rename those like My_Item_Default* and do your ...


2

I just did a simple test, and this code works just fine: var context = SP.ClientContext.get_current(); var item = context.get_web().get_lists() .getByTitle('Test') .addItem(new SP.ListItemCreationInformation()); item.set_item('MyField', ['Hello', 'World']); item.update(); context.executeQueryAsync(); And this is quite identical to your code, so that ...


2

You don't need to loop through all groups, instead you can get the groups for the current user like this: var groups = currentContext.get_web().get_currentUser().get_groups(); It does seem spoonfeeding is the preferred approach, so I'll just leave this here: function filterNewsArrayByCurrentUser(newsArray, callback) { $.ajax({ url: ...


2

@ericb: Excellent suggestion! ArrayOfGroups = new Array("Owner", "Member", "Visitors", "Trainers"); //could be dynamic array of group names var ctx = new SP.ClientContext.get_current(); var web = ctx.get_web(); var userGroups = web.get_currentUser().get_groups(); //as suggested by ericb ctx.load(userGroups); ctx.executeQueryAsync( function () { ...


1

Yes and no. First off, in order to develop a SharePoint solution without SharePoint installed, you would have to get a copy of the ISAPI folder from the 15 hive, and you might have to make a registry change. You will not be able to debug, however. You cannot deploy it directly, but you can publish the wsp to your SharePoint Online site, and then activate ...


1

According to SharePoint 2013 User's Guide: Learning Microsoft’s Business Collaboration Multiple instances of the same workflow cannot run on a single item at the same time GoogleBook


1

In addition to Azure SQL DB and SharePoint Lists, the following option could be considered: SharePoint PropertyBag Many of the important SharePoint client objects support a Properties property: Web Folder ListItem File This property returns a property bag object, which is a collection of key/value pairs. Each key must be uniquely named, each value is a ...


1

You can use the automatically created crawled properties but there are some rules you need to follow unless you want to write your own code. The details are outlined here: http://technet.microsoft.com/en-us/library/jj679902(v=office.15).aspx Two point that I think are important: "When you search for a crawled property, you may find two crawled ...


1

Try adding the following code for folder creation. //Enable Folder creation for the list list.EnableFolderCreation = true; list.Update(); context.ExecuteQuery(); //To create the folder ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); itemCreateInfo.UnderlyingObjectType = FileSystemObjectType.Folder; ...


1

You could specify in Query which items to exclude from results. For example, the following query: <Neq><FieldRef Name='FileDirRef' /><Value Type='Lookup'>/project/Lists/Tasks</Value></Neq> will exclude all task items from Tasks list located on Project site.


1

Permissions are not included in site templates in SharePoint Server or SharePoint Online. More to read in Reference 1 and Reference 2


1

Sandbox code has resource usage limitations. There is a hard limit to how long a sandboxed solution can take to be completed. By default, this is 30 seconds. if it takes more than 30 secs then it will be terminated.May be your code is taking more than 30 secs since i can see Create sub site code is there which normally takes time. Please see this Resource ...


1

Switching between SharePoint Online (Plan 1) with Yammer and Office 365 Enterprise E3 made no difference. Copied formatted text from Word 2013 was pasted in a new Enterprise Wiki page. Every formatting pasts correct with formatting information. Header 1 in Word is Header 1 in the Enterprise Wiki page, bold is bold, italic is italic and so on. Everything ...


1

You can simply parse the date using Javascript Date object. If different cultures are being used, you have to get the culture being used and format it accordingly. var date = oListItem.get_item('StartDate'); if(date) { date = new Date(date).format('MM/dd/yyyy'); window.console && console.log(date); } //Update var today = new Date(); ...


1

Try getting the Field Schema and updating the field name in it. Example: var ctx = SP.ClientContext.get_current(), //SP.ClientContext field = ctx.get_web() //SP.Web .get_lists() //SP.ListCollection .getByTitle('MyList') //SP.List ...


1

You need to use an administrator account to perform this action. If you use a non-admin account you'll get your mentioned error, or what I got through testing on a non-admin account: Set correct privilegies in Admin > Office 365 > Users and Groups. Select the name you want to make admin (with a global admin account) and select settings: When you're ...


1

Serve Side approach: Create a custom file based on "_layouts/[15]/checkin.aspx" file and add the default value for the comments field. Additionally, to tie this to a particular list, create a custom action(one for Ribbon and one for ECB) that would open your custom "custom-checkin.aspx" file. JavaScript approach: function addCommentDefaultValue() { if ...


1

No, That is not possible. The Site Mailbox in SharePoint is really just a Shared Mailbox in Exchange. Anyone that has access to the site can click "Site Mailbox" and have access to OWA for that Shared Mailbox. There is no way for the document to get out of exchange and into SharePoint without you doing it. You should look into OneDrive if you want to ...


1

The Content Search Web Part is the replacement. First you need to activate Cross-Site Collection Publishing site collection feature to get any data from the Content Search Web Part. The (not so) funny thing is you can add the CSWP without activating the feature, but you won't have any data presented. Be sure to have a subscription/license containing ...



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