Hot answers tagged

32

Me in a Calculated Column You can not use [Me] in a Calculated Column Formula. 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 ...


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 MS16-...


16

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

Client Site Rendering is simply a term for when the data is transformed using the client rather than the server. This means using client-side technologies, such as HTML and JavaScript. It allows us to style SharePoint elements using JavaScript, rather than having to write XSLT. You can use it to style complete List Views, Fields, Search Results and more. ...


10

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 (...


10

SharePoint uses the default URL for links in alerts and workflows that are automatically kicked off. The workflow system doesn't have any way of knowing which alternate access mapping any given user would use when logging into SharePoint, so it just builds the link using the Default zone since it has no other info to go on. Without diving into fully ...


9

As mentioned by @jubblerbug, this can occur if you already have .NET Framework 4.6 installed before SharePoint 2013 (e.g. if you installed Visual Studio 2015 first). I couldn't use Microsoft's workaround as the option to remove .NET Framework 4.5 was disabled, and the ability to uninstall the .NET 4.6 update wasn't there either. So I used Process Monitor to ...


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


9

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, "...


9

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 ...


9

There are two types of views - Public and Private. Public View: To create Public Views there doesn’t appear to be an actual limit. What was limited in previous version of SharePoint 2010 is the number of views shown in the drop-down list of views. The limit was 50. You can have more than 50 views but to navigate to view 51 you should be knowing the URL. And ...


9

Using your SP.Web object, you can get the parent information (SP.WebInformation). Using its ID, you can then, via the site collection, get the parent web object. var context = new SP.ClientContext.get_current(); var web = context.get_web(); var parentInfo = web.get_parentWeb(); var parentWeb = context.get_site().openWebById(...


8

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.


8

Workflows The last option I'd go with is the workflow: workflows are slow, buggy, do not work at all when there's a lot of them running, complicated to debug, and most of all they completely disturb the users since they're visible in the UI (with a messy UI). Why would a background task be visible in the UI? In adition, conceptually, your task is not a ...


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

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. ...


7

That isn't the way SharePoint works. Lists and libraries are the 2 basic storage mechanisms for things. You either create an entry (list) or upload a file (library). If you want to upload files to a list, it has to be as an attachment to a list item. You can't upload a file to a list in any other way. Otherwise, you need to upload the file to a document ...


7

The OData provider for the REST API is configured to limit the number of items in a response to 100. It protects against developers inadvertently making a request that returns large result sets. If there are more items the response will contain a continuation. In a JSON response the continuation will be a property named __next. You can use $top if you ...


7

I hope OP meant following thing from site settings. To check whether this option is checked or not, we need to make a REST call to the following end-point /_api/Web/AllProperties It will return all properties under the web. Now find the property named OData__x005f__x005f_InheritsThemedCssFolderUrl. If it's value is "True", then the theme is being ...


7

You definitely don't want to use a workflow for this. Workflows are good for certain things, but the background color for a list item is not actually stored on the list item, so there is no way a workflow will be able to access or modify it. To me, it sounds like a job for Client Side Rendering (CSR), which would use JavaScript to check the value of the ...


7

Just focus on two things: Workflow will never start automatically with system account. Check the options Start workflow automatically when an item is created or changed from Workflow Start Options. Maybe start here: https://blogs.msdn.microsoft.com/sharepointdesigner/2011/07/08/understanding-workflow-starting-parameters-part-1/ or here: https://www....


6

Maybe have flicker, but my solution will keep the scroll position of Chrome after you click into calendar icon (better than no answer from 2013 ^_^). At the bottom of your aspx page, add following script: function OnIframeLoadFinish() { ULSvmd: ; var picker; if (typeof this.Picker != 'undefined') picker = this.Picker; if (picker != ...


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 (...


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

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

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

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 ...



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