Skip to main content

Posts

Common SharePoint URLs

SharePoint can be really tricky at times. It is not always easy to find the links via navigation.
No more wasting time in navigating. Here are the most common URLs used in SharePoint. Hope this will help you save a minute in your life 😊
Nothing is perfect; help us make this perfect by suggesting more links.
So here we go....

Site Collection Features /_layouts/ManageFeatures.aspx?Scope=Site (Case sensitive)

Manage site features/_layouts/ManageFeatures.aspx

Master Page Gallery/_catalogs/masterpage

Site collection Recycle Bin/_layouts/AdminRecycleBin.aspx
Site recycle bin /_layouts/RecycleBin.aspx

Site Column Gallery/_layouts/mngfield.aspx

Top-level Site Administration/_layouts/webadmin.aspx
Site Content Types

/_layouts/mngctype.aspx
Solution Gallery

/_catalogs/solutions/

Searchable Columns/_layouts/NoCrawlSettings.aspx

SharePoint server version /_vti_pvt/Service.cnf

Recent posts

How to clear cache in SharePoint Designer 2010 or 2013

Sometimes SharePoint Designer acts weird and does not show all the components. Some common issues include 'item cannot be displayed', 'site is disabled to be edited', 'unable to check in File', 'unable to see workflows' etc.

The common reason for these issues are due to caching in SharePoint Designer.  To fix this, you need to clear the cache and start again.

This is how you can clear cache in SharePoint Designer 2010/2013

Close all instances of SharePoint DesignerGo to File Explorer and paste %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache and delete all files.Go to %USERPROFILE%\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCacheand delete all files.Go to %USERPROFILE%\AppData\Roaming\Microsoft\Web Server Extensions\Cacheand delete all files.Open SharePoint Designer and you can see that all the data is cleared. Disable caching in SharePoint Designer 2010 and 2013Open SharePoint Designer 2010/2013 and navigate to "File" ⇛ select …

How to restrict multiple users for a people picker field in SharePoint 2013 form using script?

In this post, I will explain how to restrict multiple users on a people picker field in a SharePoint Form (NewForm or EditForm).

Firstly, we need to get the people picker field id



Use the below code and set the AllowMultipleUsers to false

var pp;

 SP.SOD.executeFunc('clientpeoplepicker.js', 'SPClientPeoplePicker', function () {

pp = SPClientPeoplePicker.SPClientPeoplePickerDict["UserName_xxxxxxx_$ClientPeoplePicker"];

 pp.AllowMultipleUsers = false;

        });

Another way is to get the count of users in the people picker field and restrict the save on PreSaveAction()

TotalUserCount will give the number of users in the peoplepicker field.

function PreSaveAction() {

var count = pp.TotalUserCount;

    if (count > 1) {
        alert("Multiple users in people picker field");
  return false;
    }
  return true;
}

SharePoint 2013 update hyperlink field URL and Description using SharePoint Designer Workflow

To update a hyperlink field URL and Description using SharePoint Designer workflow in SharePoint 2013, following steps can be used.

1. In SharePoint Designer Workflow and create a variable by clicking on 'Local Variables'.

2. Name the variable as 'hyperlinkVal' and type as 'String'.

3. From the top ribbon click ⇛ "Action" and select "Set Workflow Variable".





4. Now select the hyperlinkField and set the value as follows  "{URL}", "{Description}"     "https://url", "Click Link"
In the first part, provide the Url and in the second part give the description. Note that there is a blank space after ','.   
5. Now click on top ribbon ⇛ 'Action' ⇛ 'Set Field in Current Item' action (To set hyperlink field in the list/library)

 6. Select the hyperlink field and set the value of hyperlink. Select "Data Source" as "Workflow Variables and Parameters" and Select the variable &quo…

Start a SharePoint Designer 2013 workflow​ from another workflow using REST api

In SharePoint 2013, Microsoft introduced the new Workflow manager for managing the SharePoint 2013 workflow which needs to be installed separately. At the same time, the workflow service (2010 workflow) was retained as same. So by doing this, we have the option to create both SharePoint 2013 and SharePoint 2010 workflows using SharePoint Designer 2013.

Many new features were introduced in 2013 workflows such as stages and REST calls within workflow which definitely makes workflow a powerful tool for a developer.

Another interesting feature is the ability to trigger a 2010 workflow from the 2013 workflow. This will give the developer capability to club both the workflows together in order to achieve complex functionalities.

But there is one drawback, we don't have an out of box option in SharePoint 2013 workflow to start another 2013 workflow. Only a SharePoint 2010 workflow can be started.
But we do have an interesting alternative approach to achieve this using REST API call from a S…

JavaScript replace all commas in a string ?

JavaScript replace function can be used to replace a part of string inside a string variable.Take an example string - "one, two, three, four" Using JavaScript replace function
var str= "one, two, three, four"; str= str.replace(',',''); - but this will replace only the first occurrence of "," which will give the result as 
"one two, three, four"
if you want to remove all occurrences of the string, following RegExp can be used.
var str="one, two, three, four";str.replace(/,/g ,""); This will give output as "one two three four"

Create and Update a hyperlink field in SharePoint using CSOM

To create and update a hyperlink field in SharePoint using CSOM and server side object model, following code can be used.Create a hyperlink field using server object modelusing (SPSite site = newSPSite("Site URL")) { using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists.TryGetList("List Name"); if (list != null) { SPListItem item = list.Items.Add(); SPFieldUrlValue hyperlinkField = newSPFieldUrlValue(); hyperlinkField.Description = "Title of Field"; hyperlinkField.Url = "URL here"; item["Title"] = "New item Name"; item["Hyperlink"] = hyperlinkField; item.Update();} } }
CSOM create a hyperlink field.