Hot answers tagged

93 votes

CSOM vs JSOM vs SSOM vs REST

2013 Model Types: CSOM: Client-side object model. C# (or Visual Basic) only, use NuGet, at the moment same package for both 2010 and 2013. JSOM: JavaScript object model. JavaScript only. SP....
28 votes
Accepted

Reopen Web Part once closed in Web Part Maintenance Page

You cannot open that web part from "Web Part Maintenance Page" again. Instead you have to "Edit Page". Then click "Add web part". From left pane, in the categories click "Closed Web Parts", and then ...
user avatar
17 votes
Accepted

Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance

I managed to fix this error by following these steps: Stop the Windows SharePoint Services Timer service (Found in Windows Services) Navigate to the cache folder In Windows Server 2008, the ...
user avatar
  • 1,659
15 votes
Accepted

Products Configuration Wizard - Failed to register SharePoint Services

I resolved the issue. It appears based on the Microsoft Knowledge Base information that: Some document-conversion services in SharePoint Server are not secure when they run in a particular ...
user avatar
  • 429
15 votes

CAML Query not limiting rows

Your <RowLimit> tag is inside <Query> tag which is wrong, it should be out side the <Query> and inside <View>. Try below camlQuery = "<View><Query><...
user avatar
  • 8,769
14 votes
Accepted

Javascript Does Not Work in Internet Explorer

Delete all the console.log lines from your script. It errors out until the console is open, which is why it suddenly works when you open the console
user avatar
  • 4,046
13 votes
Accepted

The Microsoft SharePoint Migration Tool

First of all, you should be aware of The new Microsoft SharePoint Migration Tool doesn't support SharePoint 2010 yet, it only supports SharePoint 2013. Ref: Check the MSFT reply on 15/11/2017 (...
user avatar
12 votes
Accepted

SharePoint 2010 out of microsoft support

Microsoft ends mainstream support for SharePoint 2010 on oct 13 2015. Now product is already on the extended support which will be end on 10/13/2020 Read complete detail from here: https://support....
user avatar
  • 56.7k
11 votes
Accepted

What is Difference between GhostableInLibrary vs Ghostable Files?

In SharePoint, any file (outside _layouts: _layouts is a huge exception to what's following here) is either "ghosted" or "unghosted". "Ghosted" means the file source (content) is stored on the disk of ...
user avatar
  • 9,666
11 votes
Accepted

Iterating through SPListItemCollection - why foreach is bad?

Generally speaking you will want to use SPQuery to only query items you're interested in. Unless you're doing SPList oList = web.GetList("XYZ"); for(int i=0; i < oList.Items.Count; i++) { ...
user avatar
  • 8,197
11 votes
Accepted

How to get the current list/library name using JSOM?

Use ctx to get current list/library info. For Name or Title, It is ctx.ListTitle PS: No callback needed Following information can be retrieved from ctx about current list/library in SharePoint 2010....
user avatar
11 votes
Accepted

'ctx' variable in SharePoint

ctx is a global variable. It belongs in the list view pages. var ctx = SP.ClientContext.get_current(); So if you use above line in any list view pages, it will cause an issue. The value of ctx will ...
user avatar
11 votes
Accepted

Workflow : test if a value is empty

I just needed to set is empty instead of is equal to. I just didn't know we could do that.
user avatar
  • 414
10 votes

Check in all files that are checked out by me

You can use the default Check-In for all files that checked out to you without coding by doing the following : Create a view in your document library with following columns. at Filter with Checked ...
user avatar
10 votes
Accepted

Using CamlQuery in SharePoint 2010

First, The above code is Server-side object model, not Client Side object model so you should use Microsoft.SharePoint not Microsoft.SharePoint.Client namespace Second, the CamlQuery is used with ...
user avatar
9 votes

Is there a way to duplicate or copy a list into the same site

You can create a Site Template to create the copy. Go to the list settings of the list (ListA) Click save list template on the right list of links Save the template as something Click save list ...
user avatar
  • 1,678
9 votes
Accepted

Get all Users with Info(LoginName,Id,Email,Title) in SharePoint 2010 Client Object Model C#

You can query SiteUserInfoList to get all users in a site. ClientContext clientContext = new ClientContext("http://your site/"); Web web = clientContext.Web; List siteUserInfoList = web....
user avatar
  • 8,769
9 votes

Should we create large number of folders within a list?

I would suggest you create different content type or use the tagging feature to organize the items. Check this for the list of Pros and Cons http://social.technet.microsoft.com/wiki/contents/...
user avatar
  • 28.2k
9 votes
Accepted

Is it possible to built a redirect link that redirects you depending on your user group?

You can use different ContentEditor (Script) WebParts for Each Group, set the Target Audience on each WebPart to match your groups. Inside each Webpart add a script which sets a global _MyGroupName ...
user avatar
8 votes

Why is my column not shown under “Add a column to show each of these additional fields”?

How about this as a solution, Say the choice column that you want to use is called 'My Choice', create a calculated column with the formula [My Choice] then this calculated column is available in ...
user avatar
8 votes

SP2010: Use Workflow to move library item into folder

I know this is an old thread, but after spending a good while looking about I found an OOTB SharePoint Designer 2010 solution for this problem. To move a document to a different folder create an ...
user avatar
  • 81
8 votes

Can't read from Source file or disk when moving document in Explorer View

I am afraid this is a well known and documented issue, related to WebDav (Web Distributed Authoring and Versioning), FPRPC (FrontPage Server Extensions Remote Procedure Call), SSL enabled ...
user avatar
  • 1,305
8 votes

How to get only custom fields from a list?

In SSOM SPField.SourceId property allows to determine either the namespace that defines a built-in field or, if it a custom field, the GUID that identifies the list or Web site where it was ...
user avatar
8 votes
Accepted

Enabled the anonymous access for entire site collection but getting access denied on list /libraries

When giving anonymous access to a publishing portal or a site with the publishing feature activate, there is an additional feature getting activated called ViewFormPagesLockdown. This feature prevents ...
user avatar
  • 9,491
8 votes

How to get a list of broken links using Powershell? for Sharepoint 2010

Here's a PowerShell function that returns a hash table with all links on a page at a given URL and their status codes: Function Get-LinksWithStatusCode ( [string] $Url ) { $links = (Invoke-...
user avatar
8 votes
Accepted

Reliably get attachments for list item

Using SharePoint 2010 JSOM i would suggest the following approach to retrieve list item attachments: determine whether List Item contains attachments or not via ListItem.Attachments property in case ...
user avatar
8 votes
Accepted

Calculate date minus x days in Designer workflow

For date calculations you can use workflow action Add time to Date Action In your case it will be like Add -14 Days to DueDate (Output to Variable: YourDateVariable). This will substract 14 days from ...
user avatar
  • 28.2k
8 votes
Accepted

Differing ways to make executeQueryAsync calls - Function.createDelegate (is old IE8 code)

https://msdn.microsoft.com/en-us/library/office/dn168907.aspx states: SP.ClientContext.executeQueryAsync( succeededCallback , failedCallback ) So in both your examples you are referencing a ...
user avatar
8 votes

Multi line box Infopath not Word Wrapping in Chrome.

Upload a new css file to the “Style Library”. File should contain the following: textarea { white-space: pre-wrap !important; word-wrap: break-word !important; } Go to Site Settings – Look and Feel –...
user avatar
  • 116
8 votes
Accepted

Migrate from SharePoint 2010 to SharePoint 2016 directly?

Unfortunately, you have to migrate to 2013 first. The only ways to do it directly ie skipping 2013 is by doing it manually or by using some third party tool or building a tool by yourself. See this ...
user avatar
  • 8,769

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