Wednesday, December 3, 2014

We will discuss how we can provide item level permission to list or document library items in SharePoint 2013. Through this item level permission we can define unique permission to that particular item.

In this sample I have a list name as TestList1 and I want to give item level permission to one of the list item. First open your list in the browser and then select the particular list item and then click on ... like below:

This will open the menu, click on "Shared With" as shown in the fig below:

In the Shared With dialog box, it will display to whom the item has been shared. Click on ADVANCED as shown in the fig below:

This will open the PERMISSIONS page. Each item has permission of the parent by default. To give unique permission we need to Stop inheriting permission from the parent and then we can give unique permission to the item. So click on "Stop Ineheriting Permission" as shown in the fig below:

If you are using chrome browser, then Stop Inheriting Permission will come under PERMISSIONS -> Inheritance -> Stop Inheriting Permissions like below:

Then this will display a message saying you are about to create unique permission for this item... Click on OK.

Now you can give permission by clicking on the Grant Permission button from the Ribbon or you can select any group and click on Edit User Permissions if you want to modify any user permissions as shown in the fig below:

Similarly if you want to remove permission for any particular group, then you can select the group and click on Remove User Permissions. It all depends on your need.

Revert Back:
Now if you want to revert back and want to inherit permission level from parent then simply click on Delete unique permissions as shown in the fig below:

Then it will ask for a confirmation message that you are about to inherit permission from the parent... Click on OK.

In this post we will discuss how to add an item to SharePoint 2013 list using JavaScript object model. In this example we will provide an option for user to enter the title for the item and user can click on the button to save the item.

Thursday, November 27, 2014

LepideMigrator for Documents is a very powerful tool for content
migration from File Servers, Exchange Public Folders and Office 365 Public
Folders to SharePoint. So if you have plan to do content migration to
SharePoint, then this is a right tool for you.

Before using any tool which we basically pay for, we should understand
or we should know the features of the tool.

Here we will see some of the key features of the tool. You can also
check out the tool review here.

Key
Features:

Single Tool for All:

This is a
single tool for all, your local folder where you have installed this tool, your
exchange public folder and for your Live Exchange folder. Once you installed
this tool, you can map to all the folders like below:

Bulk Migration:

You do not need to waste time by migrating individual files, you can
select all the files in one shot and do a bulk migration. The tool will
generate a csv file of the selected contents which you can migrate either
manually or through the scheduled migration option.

Metadata Migration:

Metadata in SharePoint is very much helpful, it will help while
searching for any documents. So while migration it is very much useful to
associate the metadata to every file. LepideMigrator for Documents helps us
transferring attributes not even to file to folder, email, contact etc. also.

Users and
Permissions:

This tool will map users between source and destination (SharePoint). In
SharePoint, security and permission are very much important. People should not
see private documents. This tool will also help in migrating file permissions.
So user can view the file which they have permission.

Analyse before start
migration:

This is one of the feature I like most, you can analyse whether the
selected content can be uploaded to the SharePoint server or not. You will be
able to know what all issues may come during migration.

Automatic Migration:

Another cool feature of this tool is you can schedule an automatic
migration from File server or Public folder to SharePoint server. Content
migration is always a time consuming process, so you can schedule the job
according to your convenient time.

You can schedule to run daily, weekly, monthly or only once. There are
also other options are there.

Connect to Multiple
servers:

If your documents are in multiple file servers, do not worry as long as
you are using "LepideMigrator for Documents" tool. You can connect to
multiple file servers in the network. It will manage the individual connections
to User Mailboxes, Archive Mailboxes and Public Folders of any Exchange Server
or Office 365.

Various Platform to
choose from:

Another feature of this tool is that it can run one major windows OS
versions starting from Windows XP to Windows Server 2012 R2 including Windows 7
and Windows 8 also. And also it supports virtual environments like Hyper - V
Server 2012 R2, Microsoft Virtual PC etc.

Supports SharePoint
Servers:

It supports both on premise SharePoint as well as SharePoint online.
Like it supports SharePoint Foundation 2013 (on premise and Online), SharePoint
Server 2013 (on premise and Online) and SharePoint Online (Office 365).

Full support of
Outlook Exchange Servers:

Do not worry even if you are using the first version of exchange,
because this tool supports Exchanges Server 2000 to 2013 and also Office 365.
Similarly it also supports Outlook 2003, 2007, 2010 and 2013 versions.

Write Logs:

The tool will write logs while migrating, just you need to enable the
option in Profiler General Settings. And also you can set the connection
timeout as Infinite, so that you will not worry about the timeout.

Lots of Settings
Options while Uploading:

While uploading file from local system, you will have lots of settings
options like whether you want to overwrite existing file or not, whether you
want to add new versions to an existing file or not. Apart from this you can
also give various filter conditions like filter based on date (greater or less
than a given date), filter based on creation date or modified date. You can
also filter based on file name, file extension or file size.

Invalid (illegal)
character replacements:

SharePoint 2013 does not allow special characters in name, and this tool
provides an option to replace illegal characters (~,#,%,{,} etc.) with valid
characters such as underscore (_).

In this post we will discuss what is Minimal Download Strategy in SharePoint 2013 and how to enable or disable Minimal Download Strategy in SharePoint 2013.

Before this article we have discussed some of the new features of SharePoint 2013 as will as we have discussed how to use script editor web part with a sample code.

In the web application concept where user send a request and got a response back, the whole web page will be reloaded even if you update the whole page or a part in the page. And this causes some performance issue for the end user like page loading time etc.

SharePoint 2013 introduced a new feature known as "Minimal Download Strategy (MDS)". This Feature allows for partial page download which basically speedup page rendering. MDS alls
When MDS is enabled all pages for that site is rendered through the /_layouts/15/start.aspx page like when you request the home page or any other page then it will be like below:
URL when MDS is NOT enabled: http://site/SitePages/Home.aspx
URL when MDS is enabled: http://site/_layouts/15/start.aspx#/SitePages/Home.aspx
Internally the the start.aspx page has a specific JavaScript object asyncDeltaManager which is responsible for this activity.

How to Enable/Disable Minimal Download Strategy (MDS) Feature:
By default this Feature is enabled on Team sites, community sites etc in SharePoint 2013. Remmber if you Deactivate the feature to disable Minimal Download Strategy (MDS) then you will loose the benifit of caching.

To enable or disable MDS feature Open SharePoint site, then from the Settings icon click on Site Setting. This will open the Site Settings page, Click on Manage site features under Site Actions. Then in the Site Features page, search for "Minimal Download Strategy" featue. Then click on Activate (if you want to enable MDS) or DeActivate (if you want to disable MDS).

Monday, October 27, 2014

Sometimes you need to set a people picker field value to empty in some condition in in SharePoint designer workflow.

Also check out:

I have a scenario like this:
I have a customized SharePoint InfoPath list form which contains a People picker field. Whenever user submit the form an email will trigger to the email id presented in the people picker. Now my requirement is to set the people picker blank once the email sent. So tried various solution like created a variable and set it to empty and then assign that variable to the people picker. Then created another people picker field and assign that people picker in the Set value to value action. This also did not work for me.

The solution which work for me is in the Set value to value (Set field in Current Item action), I did like Set EmailTo to [space]. Here space means a space without bracket.

Not sure whether it is correct approach or not, and if you have any better option then please Share with us.

Here we will discuss how we can set text field value to empty in SharePoint 2013 designer workflow.

Here I was a very simple requirement, after sending one email in designer workflow I need to make a text field to empty in the workflow itself. There is an action available in SharePoint designer workflow name as "Set Field in Current Item". It is easy to set a field value with another field value using this action, but no direct way to set blank or empty in that action.

So here I created a local variable in the workflow with default value of empty and assign that variable to my text field.

Also check out:

To create a local variable click on the Local variable button in the Ribbon as shown in the fig below:

Then in the Workflow Local Variables dialogbox, click on Add and then give a name and chose the data type as string and then click on OK. Finally the local variable dialog box should look like below.

Now add an Action name as Set Field in the current item. Click on the First value link and choose your field name. Then click on the second value link, it will open the Look up dialog box. In the Data Source: choose Workflow Variables and Parameters. Field From Sourece: Your workflow variable name that we have created above. And Return Field As String as shown in the fig below:

Sunday, October 26, 2014

In this post we will discuss how we will create master page using design manager in SharePoint 2013.

Master Page: It is the common layout of a page that we use in every pages.
Default Master Pages in Sharepoint 2013: "Seattle" and "Oslo"

For Example:- I have made a basic layout through HTML as shown in below figure, which will be used in every pages of the site in Sharepoint 2013.

- How to implement the above HTML page in Sharepoint 2013 as a Master Page with examples?

Steps:

- First go to your respective Top level site. (i.e Asish Sharepoint Site).
- Then click on "setting" button at the top-right corner of the navigation bar.
- Then click on "Design Manager" as shown in below figure.
- If design manager is not available there, then go to the Site Collection features and activate "Sharepoint Publishing Infrastructure."

- Then you will redirect to the below page.

- As shown in the above figure click on "Upload design files" which is marked in red color.

- Then copy the URL and paste the same in another tab to open Master page gallery as shown in above figure.

- When the the "Master page Gallery" window appears as shown in the above figure, then navigate to the FILES tab and create a NEW FOLDER(e.g I have created ASISH folder) to maintain your files in an organized way .

- Then click on your respective folder that you have created.(for e.g ASISH)

- When the above page will appear, then click on "FILES" tab and then click on "Upload Document" to add your HTML, js, css files and Images.

- Choose your HTML file and click on OK button

- Then the above form will appear where you fill the details as shown in above figure which is marked in red color.

- NOTE: When you are uploading a HTML file as an Master Page always choose the Content type as "HTML Master Page" and check on "Associated file" to create its corresponding master page as shown in below figures.

- Then Click on "Save" button.

- Your HTML page i.e "demomasterpage1.html"along with its master page i.e "demomasterpage1.master" has been created.
- Then we have to publish the corresponding html page by clicking on the drop down box near to the corresponding html page( as shown in below figure) to implement it in our pages.

- After completion of these steps then go the "Design Manager" and click on "Publish and Apply Design" then the below page will appear.
- Then you have to click on "Assign master pages to your site based on device channel" to implement it.

- Then the below form will appear where you have to select your master page.

- If you are selecting your master page on "Site master pages" level then your master page will reflect on your Custom pages.
- But if you are selecting your master page on "System Master Page" level then your master page will reflect in your Application Pages.
- And finally click on OK button.
- Then add a page to see whether the master page is reflecting or not.

Saturday, October 25, 2014

In this post we will discuss how we can lookup To address from a SharePoint list while sending emails using SharePoint 2013 designer workflow. If you have put any static email id in the SharePoint designer workflow for sending emails, then any time you need to change the recipients, you must open the workflow in the Workflow Designer and make the changes manually. So it is better to lookup the To or CC field from a list.

Also check out:

So first create a SharePoint custom list and the column which will contain the email id can be a Single line of text, Multiple lines of text, or Person or Group type columns. If you use a Person or Group column, only one entry can be made in each field that the workflow will reference for e-mail addresses. When creating the column, be sure to select No under Allow multiple selections. If you want to use this type of column to specify multiple recipients, you can create a SharePoint group that includes the people that you want the workflow to address the e-mail to, and then specify the group in the field. When creating the column, be sure to select People and Groups under Allow selection of.

In our case we will create a column which will contain a single user. For user convinient rename the Title column to Workflow Name and other column say WorkflowToId. Then we will add one item to the list Where the Workflow Name="My Test Workflow" and the WorkflowToId=bijay@enjoysharepoint.com and save the item. So the list with the item will look like below. Here Workflow Name is also important because we need to give this value in the designer workflow.

Now open you workflow in SharePoint designer 2013 and then click on the To icon to open the Select User dialog box. In the dialog box, click on "Workflow lookup for a User...". This will open the Lookup for Person or Group dialog box. Here in the datasource choose the list name that we made in above, and then Field from source the column name that contains the email id, in our case the column name is "WorkflowToId". Then in the other section, choose Field as the Title column of the new list, in our case we rename it as "Workflow Name" and then in the Value box write the value presented for that column. In our case it is My Test Workflow.
The dialog box will look like below:

After this the email will be send to the To address which is presented in the list. So afterwads if you want to change the To email id, simply change in the list, no need to open the workflow. If you want to add more To address, then you can add additional columns and store and use like above.

Sometimes you will not see Site Pages link under Look and Feel in Site Settings. Here we will discuss how we can bring back Site Pages link.

Steps:
Open SharePoint site, from the right side click on Settings icon and then click on Site Settings.

Under Site Actions click on "Manage site features".
Then in the Site Features page, search for "Wiki Page Home Page" feature and click on Activate.
Go to Site Settings > Under Look and Feel Click on Welcome Page. It will appear like below:

In this post we will discuss how to disable the windows authentication prompt which we usually got while opening a SharePoint site. If you are working in your local system and every time it is asking for user name and password it is better to save the authentication so that it will not ask repeatedly.

Steps:
Open Internet Explorer, then click on Tools -> Internet options.
Then in the Internet Options dialog box, Click on "Security" tab.
Then click on "Local Intranet" -> Custom level..
This will open the Security Settings - Local Intranet Zone.
There scroll down to end you will find "User Authentication" and then Logon.
Here choose the radio button "Automatically login with current user name and password".
Click OK.

In this post we will discuss how to resolve error connections to the SharePoint server are currently disabled because the project is in Offline mode which comes when trying to Uninstall an app in SharePoint 2013.

If you got the below error while uninstalling an app in SharePoint 2013:
Error occurred in deployment step 'Uninstall app for SharePoint': Connections to the SharePoint server are currently disabled because the project is in Offline mode. To connect to the SharePoint server, switch to Online mode by setting the project’s Server Connection property to Online, and then try the operation again.
then follow the below solution, may work for you.

Solution:
Open SharePoint project and then Select solution.
Now Press F4.
In the Properties window check for "Server Connection".
Here Select : Online and then Save.

While I am trying to add SEO properties into my sharepoint 2013 site by following this article, But here the Edit Seo Properties link is coming as disabled. But the site is a team site not a publishing site.

Now I did not find a solution how to enable the link.

But I got a solution how to directly open the SEO properties page and update the SEO properties.

Below is my site URL

http://win-pfcp2dgt8di/sites/EnjoySharePoint/SitePages/Home.aspx

And now change the URL like below and it will open the SEO edit properties page.

Recently some users when try to open the infopath form from a link by following this article, some users got the below error.

The error message says.There has been error while loading the form. Click Try again to attampt to load the form again. If this error persists, contact the support team for the web site.

Click close to exit this message.

Error details:
The following file is not a valid infopath form template.

Solution:
Here the problem in this case was with the URL. First I was giving the below URL:
http://win-pfcp2dgt8di/_layouts/15/FormServer.aspx?XsnLocation=http://win-pfcp2dgt8di/MyTestFormLib/Forms/template.xsn&SaveLocation=http%3A%2F%2Fwin-pfcp2dgt8di%2FMyTestFormLib&ClientInstalled=false&DefaultItemOpen=1

Method-1:
We can add hyperlink from the Insert tab which is shown in the below pics. Here user has the option to edit the hyperlink URL and the text to be displayed in it.

Once you put the hyperlink from the Insert tab it will ask you for the Address and Text to be displayed.

Method-2:
The other one is inside the controls list.

Go to the Home tab and then from the Controls click on Hyperlink. Once it will add you will able to see field1 and field 2 under myFields in Fields section. Here field1 is responsible for the URL and field 2 is responsible for the text to be displayed in the hyperlink.

Now right click on field1 and go to the properties, in the properties dialogbox give the URL in the Value textbox as shown in the fig below:

Now right click on field2 and go to properties. In the properties dialogbox in the value textbox give the text to be displayed as shown in the fig below:

This type of App lives inside SharePoint. There is not code running on the server. All code must run in the client. This will have .aspx page but lots of JavaScript code that will implement the logic via client side script and service calls.

Auto-hosted and Provider-hosted apps comes under cloud hosted app. These apps hosted outside of SharePoint server. Since its hosted outside of SharePoint server you have the freedom to develop an app using any language like PHP, Java or .Net. You can write server side code here which will communicate with SharePoint server. Here it will use OAuth protocol for authentication mechanism.

Provided hosted app enables developer to define its own infrastructure which may be a dedicated server or may be a cloud server provided by providers like Amazon.

Azure auto hosted app is available with Office 365. It contains a web project and a sql project. If you are a Office 365 customer and selected the azure autohosted deployment option, then it automatically wired up al the integration to Azure.

Solution:
As the exception message suggested the SPDistributedCache may be down.
So to verify this you need to (re)start AppFabric Caching Service. To start the service:
1) Open the Run prompt then services.msc
2) Select AppFabric Caching Service.
3) Double click the service.
4) Set start up type to Automatic and then click on Start.
5) Then apply and then OK

All the above templates comes by activating "Team collaboration lists" site collection feature. To activate the feature, Click on the Settings Icon from the right top and click on "Site Settings". The click on "Manage site features" from the Site Actions section. Then in the list of features page, Search for Team Collaboration Lists and click on Activate as shown in the fig below:

Here we will discuss how to create a SharePoint 2013 publishing site. Web Content Management (WCM) in SharePoint Server 2013 consists of features and functionality that you use to configure, customize, optimize, and publish site collections, sites, and pages. When we talk about publishing sites in SharePoint Server 2013, we are referring to sites that use one or more of these features to author and deploy branded artifacts, content, and configuration files to Internet, intranet, and extranet sites.