Hot answers tagged

17

Apply the Cumulative Update for SharePoint 2013 (Foundation, Server, or Project). This should resolve the issue. This appears to be caused from applying MS16-004 while having a previous Cumulative Update installed. Cannot reproduce from a system upgraded to the SharePoint Server 2013 Jan 2016 CU, but can reproduce on another farm by only upgrading to ...


16

Me in a Calculated Column I do not understand why you want [Me] in a Calculation. You can use [Me] in de View Filter settings Like the [Created By] and [Modified By] Columns and Lookup Columns [Me] is not available for Calculated Columns as the textual information is not stored in the List Item. I presume its legacy behaviour. Although with todays ...


14

It extracts one named parameter from the QueryString (URL) http://domainname.com/page.aspx?parameter1=xxx&parameter2=yyy var value=getQueryStringParameter('parameter1'); It is used in many examples and most of the time not necessary (and bloats your code) because SharePoint has multiple implementations in core libraries Usage depends on whether you ...


11

If you export the web part and locate the JSON string that contains the "refinerConfigurations" you can change the "useDefaultDateIntervals":false and then set your own intervals like "intervals":[-365,-180,-30,-7,-1]. Dates in the past are negative and the future are positive. If you don't know how to export and import a web part let me know and I'll add ...


11

For those who are still looking for the answer. SharePoint 2013 (since SP1 at least see UPD below) contains special method Web.GetList. It accepts site-relative url for the list, i.e. site/dev/lists/mylist. Sample code for .NET object model: var ctx = new ClientContext("http://sp2013dev/sites/dev"); var list = ...


10

RIGHT click on IE hold SHIFT and then RIGHT click again on IE LEFT click "Run as different user" login Repeat 1.- 4. for other users :)


9

The simple process of setting item level permission is not available for SharePoint 2013 workflows. The only way I was able to do was through REST api called under Appstep. There are 2 calls made: BreakRoleInheritance AddRoleAssignment This blog by Yuri Leontyev​ ​ over at spssite.pro can be a good start. Excerpt: BreakRoleInheritance​ ...


9

Microsoft has built a lot for you. Check out the Content Organizer


8

SPD does not offer a concat function. You can use SharePoint workflow variables and the String Builder dialog box in SharePoint Designer 2013 to be able to perform string concatenation. This might help or check my steps below. Step One: Create variables and put in a string. Also CurrentItem can be used: Step Two: Run the Workflow. Here my Output ...


8

There is a property on the list for the default dispform, newform and editform url. Example: var clientContext = SP.ClientContext.get_current(); var list = clientContext.get_web().get_lists().getByTitle("ListTitle"); var caml = new SP.CamlQuery(); caml.set_viewXml("<View />"); var listItemCollection = list.getItems(caml); clientContext.load(list, ...


8

properties.Status = SPEventReceiverStatus.CancelNoError; OR .CancelWithError


8

Personal views Surely you don't actually want to edit a personal view page? This only is relevant for one user. Rather, I think you might want to ensure that all views of a certain list have same customizations, even if personalized views are added. CSR vs JSLink Just to make things clear, CSR is completely separate from JSLink. They can be used together ...


7

There can be many advantages if you target your users to the Web Part Page on which you have a view of a List. And they are as follows. The independent Web Part Page can be branded and have a more appealing look Instead of showing all of the items, Views are very useful in listing the filtered data. Which makes sense when you want your users to see only ...


7

The master pages and page layouts are stored at site collection level and in master page gallery _catalogs/masterpage. But you can always have liberty to select different master page for each sub site or also inherit the master page from its parent which is a site collection. Webapplication won't have any master page for itself without a root site ...


7

You can use $SubWeb.Site.RootWeb


7

John is more or less right, but you need to use SP.KeyValue afaik: 'properties': { '__metadata': { 'type': 'SP.Utilities.EmailProperties' }, 'From': from, 'To': { 'results': [to] }, 'Body': body, 'Subject': subject, "AdditionalHeaders": {"__metadata": ...


7

Getting only the current user won't be enough to get user profile properties. You need to use the PeopleManager as well. Your code should look something like this: var context = SP.ClientContext.get_current() var web = context.get_web(); var user = web.get_currentUser(); var peopleManager = new SP.UserProfiles.PeopleManager(context); var personProperties = ...


6

CSOM and REST was introduced in SP 2010 so you wont be able to use that with 2007. SOM is an option but requires that your code runs on the servers of each farm. SharePoint Web Services will be your best option if you need to support all three versions with the same code from client computers. Lists Web Service (/_vti_bin/Lists.asmx) for getting libraries ...


6

It might look like a property, but actually the setter of that property calls a method named SetAllowUnsafeUpdates(value) which code is as follows: private void SetAllowUnsafeUpdates(bool allowUnsafeUpdates) { this.Request.SetIgnoreCanary(allowUnsafeUpdates); } SetIgnoreCanary sets to ignore Canary (Canary is something that refers to a method of buffer ...


6

The built in [Today] and [Me] values have never worked in calculated columns, all references to this in previous versions were "hacks" as Sane mentions. The best ways to do this would be either via workflow on item creation/edit you update a fields based on the formula you desire or you could try a remote event receiver to handle it.


6

The problem turned out to be overzealous Group Policies being applied to the Activity Directory OU that the user was in. Specifically it is these policies: POLICY CURRENT SETTING SHOULD BE Turn on Internet Explorer 7 Standards Mode Enabled Disabled Use HTTP 1.1 Disabled ...


6

Just look at the code snippet below and try to imagine the scenario of what will happen: using(SPSite site = new SPSite("http://somesite")) { using (SPWeb web = site.OpenWeb(SameGuid)) { return web.Url; } } The above code can raise an exception because two web objects would be returned, there are infinite scenarios where GUID is used to ...


6

you should not run the PSConfig after the windows / OS patches or updates. But now a days MSFT include the SharePoint patches in the windows updates, so if you noticed SharePoint patch install along with the windows then you need to run the PSConfig. we block the windows updates and manually install the windows updates. We never run the config wizard after ...


6

To trigger an email, most people will tell you how to create a workflow (probably with SharePoint Designer). That's quite easy, it would work in most cases. But it's not the purpose of workflows (+ they do appear in the UI, they're slow, ...) Another approach is to ask a developer to create a custom App (sorry we have to say "add-in" now). That app would ...


6

100 items is the default limit Please use $limit in your request: for example : /_api/web/lists/GetByTitle('ListName')/items?$limit=1000 EDITED : In the following sample the rowlimit is set to 100 so that any list with more then 100 items will be queried multiple times until all items are retrieved. private async Task<List<ListItem>> ...


6

You need to use one of the following: Content Search Web Part Search Web Part Content Query Web Part The two search web parts are a bit easier to use as far as customizing the queries as there is a designer you can use. You can also change their looks. Content Query Web Part requires some XSLT knowledge to get the most out of it. You will add the ...


6

In SharePoint Designer, select the File tab and navigate to Account > Switch Account (link). When there, you can either sign out or switch to another account. Force Login on SharePoint Designer Now, this is a little trickier. You have to add your site as a restricted site in Internet Explorer Options to force SharePoint Designer to ask for credentials. ...


6

First, let's just clarify that JSLink is not equivalent to Client Side Rendering. JSLink is merely a property on SP objects that lets you attach Javascript files to them. However, the ability to attach a Javascript file to a SP object is enormously useful for CSR. Using the JSLink property is one of the easiest ways to apply CSR. And I would say that ...


6

http://server/sites/site1 is a different site collection. Go to the central administration. Select the site collection under the web application and add the account in its list of administrators.


6

It is possible to use SharePoint 2013 with external authentication services such as Windows Live-ID, Google and Facebook. But there is a catch (as always). You need to connect your On-Prem SharePoint 2013 environment to Windows Azure Active Directory Access Control Service (Azure AD Access Control). Even though the Azure AD Access Control is free to use ...



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