Wednesday, 6 May 2015

The workflows drives the business process in any organization. In SharePoint 2010 though we have the OOB workflows, but when we need in some customization we can develop workflows by using SharePoint designer.

Here we can have a simple workflow to send an email to notify the persons in the organization.

Assume we have an approval process for any kind of request (assume here as leave request), you have to raise a request to the respective person for the approval.
Let’s have a look to achieve this.
Create a list with fields we need (Like Requester name, Approver, etc.).

Open SharePoint Designer and open your site in SharePoint Designer.


Click on the workflows from the ribbon, select your list created above.
Then give a proper name to your workflow and also description if you want and click on OK.                

And from the conditions and action available in the ribbon, click on the action and select "Send email" 
and click on the link "these users" in that action then in the define email message window give the users name and fill the subject and body part and click on OK


.
Then select the options when you want to run the workflow from the workflow settings in the ribbon and check the check boxes accordingly.




Then publish the workflow and you are done.


Tuesday, 5 May 2015

The workflow feature in SharePoint 2010 enables solution to improve business processes. Fundamentally, a workflow consists of two things: the forms that a workflow uses to interact with its users and the logic that defines the workflow’s behavior.
In SharePoint 2010, Microsoft has incorporated some default workflows which we can called as “Out of Box (OOB)” workflows. I am listing out the OOB workflows:

Collect Feedback
Approval
Disposition Approval
Collect Signatures
Three-state

Each workflow has its own business process to provide the solution. Based on our business process we can make use of these workflows. Please go through with the description about these workflows and implement where you need them.

Collect feedback:
Routes a document for review. Reviewers can provide feedback, which is compiled and sent to the document owner when the workflow has completed.

Approval:
 Routes a document for approval. Approvers can approve or reject the document, reassign the approval task, or request changes to the document.

Disposition Approval:
Manages document expiration and retention by allowing participants to decide whether to retain or delete expired documents.

Collect Signatures:
Gathers signatures needed to complete a Microsoft Office document.

Three-state:

 Use this workflow to track items in a list.


Adding to this we can develop the workflows using SharePoint Designer (SPD). By using the designer we can develop the following workflows:

  • List Workflows
  • Site Workflows
  • Re-Usable Workflows
Click Here to create a designer workflow on the list(List workflow).

Based on the business needs we can choose any one these workflows and can develop the workflow by using the conditions and actions available in the SPD workflows.

Also, in SharePoint 2010 we can design and develop the workflows by using the Visual studio.
Here we have two types of workflows

  • State machine workflows
  • Sequential workflows 

Monday, 4 May 2015

Assume that you have created the list using custom list template. By click on the “Customize Form” in the list settings you can customize the list in the infopath.
Steps:
Create a custom list by click on the site actions -> then click on the “More Options”


Select the list from the categories and click on the “Custom list” template and give the name to the list.

Then create columns based on your requirements and then from the “List Tools” tab click on the list and
then choose the “Customize Form” option. By clicking on this icon the list will open in the Info path designer.


 Then by creating you own rules in the infopath then you can publish the infopath then the list will customized and all the forms (New, Edit, and View) will open in the infopath.


PS: Hope you have the MS-Office installed in your machine.

Thursday, 30 April 2015

InfoPath is used to generate data entry forms for both the acquisition of information as well as storage of that information. With the 2010 release, InfoPath can now be used as an alternate way to present SharePoint 2010 content within the web browser, thus enhancing the overall user experience. Using forms with workflows can help manage and enforce business processes throughout an organization.

Here we can see basic steps to create infopath form and publish it.

To create an infopath form, please follow the steps:

Open infopath designer by click on the Windows, Microsoft office , Select the InfoPath Designer.




The InfoPath designer will open and we have the lot of options to create infopath depending on the requirements.

Select the Blank form and click on the "Design Form"




Here we are selecting the blank form to design as per our usage.


 Then add the controls on to the form and write your own rules and publish by click on the file and click on publish.

PS: Please remember that you have installed MS office in your machine.

Click Here to know How to customize the custom list in the infopath

Tuesday, 28 April 2015

All we know SharePoint has lists/Libraries. After creating a custom list in SharePoint we have to change settings for the list.Here I am describing the settings page, as we have three types of settings for the list like General settings, Permissions and Management and Communication.

In this article, we will see all the settings available in our lists in SharePoint 2010 site.


Let’s go through them one after the other.
List Name, Description and Navigation
Here you can provide a name, a brief description of the list and a choice to put your list on the quick launch.
Versioning Settings
Enabling the versioning settings helps you to see the history of the list items.
We have options like:
1.     Content Approval - Requires content approval for submitted items: If you choose Yes once you upload an item, it will be viewable in the list once approved.
2.     Item version history - Create a version each time you edit a file in this list: You can enable the versions as you would like in whole numbers or in decimals.
3.     Draft Item Security – Who should see the draft items in this list? : If the item is not published or is awaiting approval, you can choose from the following options as to who can view it.
Advanced Settings
Advance Settings have plenty of options for us to modify content types.
1.     Content types: If you choose Yes, you can view, modify the content type your list is using.
2.     Item Level Permissions: Specify which items users can read and edit.
3.     Attachments: Specify whether users can attach files to items in this list.
4.     Folders: You can allow users to create folders in your lists.
5.     Search: Specify whether this list should be visible in search results. Users who do not have permission to see these items will not see them in search results, no matter what this setting is.
6.     Offline Client Availability: Specify whether this list should be available for offline clients.
7.     Datasheet: Specify whether the datasheet can be used to bulk edit data on this list
8.     Dialogs: If dialogs are available, specify whether to launch the new, edit, and display forms in a dialog. Selecting "No" will cause these actions to navigate to the full page.
Note: Dialogs may not be available on all forms.
When you open a new or edit or view form, if you want them in a separate dialog option, you can choose Yes.
Validation Settings
Validation Settings are used if you want to provide the user to provide a particular kind of validation on each submission of their documents or items.
Rating Settings
You can enable ratings of the documents or list items in the form of stars and likes.
Audience Targeting Settings
When you enable this option, it will create a new column where you can input the permission level and the content query web part will fetch values from the column and display data accordingly.
Form Settings
These settings are mainly used for configuring InfoPath forms
Delete this list
Here you can find the options to delete the list. Please be cognizant of this option.
Save list as Template
You can save the list as a template which can be used again with the same fields, same content types as well as if you include content, and it can also be added to the template.
Permissions for this list
You can provide permissions to a list if you don’t want to inherit it from the site and provide unique permission to the list.
 Workflow Settings
Here, you can view all the workflows created by UI, SharePoint Designer and other 3rd parties products such as Nintex.
Information Management Policy Settings
By default, lists will have default content type, Item, Folder will be the content type similarly for Custom lists item will be the content type so it can be changed in here in this policy settings.
Enterprise Metadata and Keywords Settings
Here we have two types of settings.
1.     Add Enterprise keywords: Enabling this feature will add a column to the library and the lists where a user can define keywords for their documents and items to be searched.
2.     Metadata Publishing: You can add tags to your items and documents to be used in your profile as social tags.
Generate File Plan Report
If you generate the file plan report, it will generate a report with all the details.
RSS Settings:
It has the features like List RSS, RSS Channel Information, Document Options, Columns, Item limit.
1. List RSS - Allow RSS: Enables or disables RSS for the list.
2. RSS Channel Information –
 Truncate Multi-line Text: Determines if the RSS feed only contains the first 256 characters for all Multiple lines of text fields in the list. For lists with large amounts of text stored in “Multiple lines of text” columns, selecting Yes to truncate these fields to 256 characters will improve performance of SharePoint and the RSS reader.
 Title: May be used by RSS readers when displaying the feed to users to show the purpose of the feed.
Description: May be used by RSS readers when displaying the feed to users to convey a longer explanation of the feed’s contents.
Image: URL May be used by RSS readers when displaying the feed.
3. Document Options - Configure Link and Enclosure settings for RSS items.
4. Columns - Determines which list columns have their data included in the feed and in what order.
5. Item limit - Maximum Items: The maximum number of items to include in the feed’s contents of recently changed list items.
Maximum Days: The furthest amount of time back that RSS will go when looking for recently changed list items to include in the feed.
Columns
Then here we have Columns where you can create, add, modify, order or index columns.
Create Column
Columns Ordering

Indexed Columns

Views
Last but the most important, we can create as many views depending upon our requirements.
These are the different views which I will discuss in detail in my next blog.
This article now will be my base in defining all different types of document libraries and lists as the settings will be mostly the same throughout.

Sunday, 26 April 2015

Custom list view customize using XSLT:


In custom list we have different types of view to display. But when we have a requirement that to show the items in 3*3 matrix mode. Then how to do it? Here we can achieve this by customize the default available XSLT in the SharePoint designer.

  1. Create a custom list with the different fields (Name, Email Id, and Mobile).
  2. Create a view as “Display View” in my case.
  3. Open SharePoint designer and click on the lists and libraries.
  4. Find out your list and open the view (here Display view)
  5. Change the view from the “Design” tab in the ribbon under the “List view tools” and select the Boxed, no labels design.
  6. Then click on the Customize XSLT option.
  7. Then find out the below line in the code
    • <xsl:when test="$Position mod 2 = 0">ms-alternating</xsl:when>
    • <xsl:when test="$Position mod 2 = 0"
  8. Change the $Position mod 3 = 0 in both the places and save
  9. Now you can see the change like below.
   



Friday, 24 April 2015

All we know that every user in the SharePoint will has his/her own user profiles which will sync automatically when the user added to AD in the organization. To get this user properties we can use any approach like by writing the SOM (Serve Object Model), CSOM (Client Object Model) etc.
In this post I am showing how to get this user profile properties by writing a simple SharePoint Designer workflow. Here we are getting this properties into a list and storing by using People picker field.

Follow the steps to achieve this

Create a custom list and create people picker column in the list
Create columns of which properties you want to get from the properties (Here I have created Email, Phone, Country)
Open your site in SharePoint Designer
Click on the workflows tab from the ribbon, select the list workflow.
Select the list (Here I am selecting the list which created in step 1).
Enter the Name for the workflow and some description for the workflow.
From conditions select If any field equals condition and follow the below steps.