Create Email Alert for a List or Library

There are 4 primary ways to get information from a SharePoint List or library (this also includes Announcement lists, Calendars, and Blogs):

Email Alerts can be setup on any Document Library, List, Calendar, Discussion Board, Blog or even on an individual webpage in SharePoint.

Creating an Alert on a List or Library

1. First go to the area you would like to create an Alert for, in this example we will setup an alert on the Shared Documents library.

2. Click on the far right content type tab (this could be; Library, List, Calendar, Page, etc), click on Alert Me, choose Set Alert on this …….
2010-Email-Alert-1

3. For the Alert Title, type in a descriptive name that has both the site and list/library name.  This will help you know where the alert is coming from by just looking at the email subject.

4. Send Alerts To this should have your name listed, if you have elevated privileges (Site Owners) then you can enroll others in alerts as well.
** For Site Owners: Only individuals can be enrolled in alerts, you cannot enroll a SharePoint group for Alerts**

5. Change Type allows you to specify your alerting criteria.  For Discussion Boards and Blogs, the New Items are added works best so you don’t get alerted when someone corrects a spelling error on post.  For Document Libraries and Lists, usually you want to be notified of All Changes.  All these settings can also be modified later.
2010-Email-Alert-2

6. Send Alerts for These Changes gives you several different options, Anything changes or Someone changes an item that appears in the following view are probably the two most commonly used filters.  The view option will only appear if more than one view has been created for the list/library and the Views do not have filter criteria for [My] or [Today] in them.  If you see a view that is a better fit for your needs than Anything changes, choose that.
2010-Email-Alert-3

7. Choose how often you want to be alerted and click the OK button.
2010-Email-Alert-4

NOTE: You will receive a confirmation email with the details for the alert you have just created.  Each alert email you receive will have a link that will allow you manage (edit/delete) any alerts you have on that specific site.
2010-Email-Alert-5

Sync or Connect a List, Library or Calendar to Outlook.

There are 4 primary ways to get information from a SharePoint List or library (this also includes Announcement lists and Calendars):

Syncing or Connecting Lists to Outlook allows you to view and even edit some types of list items in Outlook instead of having to go the site.  This method will also give you offline access to the lists or libraries in case of a site downtime.  This functionality requires the following:

  • That you are using a PC, this functionality currently does not work with Mac’s.
  • That .PST files are allowed on your PC/in your company, if you get an error message when trying to connect your company might be preventing .PST files.
  • That you have Outlook 2007 or later installed.
  • That you have Contribute access or higher on the list or library.  If you only have Read access you will not be able to connect to most lists.
  • You are not trying to connect to a Blog Site or a Links list, neither of these types allow connecting to Office or Outlook

**Connecting Document Libraries to outlook is usually best for offline Viewing.  If you are going to edit the document in outlook, it’s usually best to check it out in SharePoint first.  If you make changes to a document while offline, the SharePoint library will be updated the next time you connect.  This will overwrite any changes made to the document while you were offline.

Calendars: Syncing or setting up a “Connect to Outlook” connection

Syncing Calendars compared to connecting lists and libraries are a little bit different so they each have their own section in this article.

1.  Go the the Calendar you want to Sync, click on the Calendar tab, Click on the Connect to Outlook icon.
2010-Sync-List-Outlook-1
2. You will probably get a security prompt, click the Allow button.
3.  The SharePoint calendar will now be available in Outlook and can viewed alongside your calendar:
2010-Sync-List-Outlook-2
 ** Please be aware that not all the fields in your item will be mapped to the Outlook Calendar. **The Title, Location, Description, Attachment, and Start & End Times are the only fields mapped to the Outlook Calendar I believe.  Although you can choose for a different field to display as the Title in SharePoint Calendars, the actual Title field is what will be mapped to Outlook.One workaround is using a Workflow, you can append any custom values in your event to the description field.  So for example, lets say your Bridge Calendar event has a Category Column.  Using the workflow, you can append:

“Category: ABC Team Meeting” To the end of your description field.  These will make that information visible in your connected Outlook Calendar.  ​

Lists and Libraries: Syncing or Setting up a Connection to Outlook

1.  Go to the List or Library, Click on either the List or Library tab, click on the Connect to Outlook icon.
2010-Sync-List-Outlook-3
2.  If you get a security prompt, click the Allow button.
3.  Sometimes you even get a second security prompt, click Allow again.  These prompts only happen when creating the connection.
4.  It may take several minutes to Sync up, but the SharePoint list or Library should be added to your Outlook panel:
2010-Sync-List-Outlook-4
*You can even reply to Discussion board posts, complete issues or action item list items, and open documents from these views.

More information on SharePoint to Outlook connections: 

Information provided by Microsoft: http://office.microsoft.com/en-us/sharepoint-foundation-help/synchronize-sharepoint-2010-content-with-outlook-2010-HA101881295.aspx

InfoPath: Weekday name function in InfoPath, without code

How to find the name of the day or day name in InfoPath.

This is a re-post of Frederik Van Lierde post:
http://blueinfopath.wordpress.com/2009/11/22/weekday-name-function-in-infopath/

His wordpress blog has disappeared but luckily I was able to find an archived copy of his post.  I’m re-posting it to ensure I can find it again in the future, the content is his though.

InfoPath isn’t strong with dates, but previous post explained already with InfoPath we can do date manipulations.

This blog goes 1 step further, how can we display the name of the day, when selecting a date.

Ex. Select with the datepicker 22-11-2009, thefield should show Sunday
Excel has such a function, InfoPath not.

So this is the way how to do it, out of the box

1. Add the DatePicker field (myDate).
2. Use the previous post to create 3 fields Day, Month and Year
Link: http://nickhurstblog.com/2011/11/29/infopath-date-field-to-3-textboxes/
3. Add a temp field (to make it more readable).  This temp field can be set visible = false;
4. Add the following forula to the temp field

(../my:Day + (../my:Year – floor((14 – ../my:Month) div 12)) + floor((../my:Year – floor((14 – ../my:Month) div 12)) div 4) – floor((../my:Year – floor((14 – ../my:Month) div 12)) div 100) + floor((../my:Year – number((14 – ../my:Month) div 12)) div 400) + floor(31 * (../my:Month + (12 * floor((14 – ../my:Month) div 12)) – 2) div 12)) mod 7

5. Add 7 rules to the temp field
Condition:  temp  is equal to 1
Action: Set Field WeekDay to Monday
6. Repeat point 5 , 6 times, changing the condition and Action

0 = Sunday
1= Monday
2 = Tuesday

6 = Saturday

InfoPath: Date field to 3 textboxes

Infopath splitting the Date into Day, Month and Week

This is a re-post of Frederik Van Lierde post:
http://blueinfopath.wordpress.com/2009/11/20/date-field-to-3-textboxes/

His wordpress blog has disappeared but luckily I was able to find an archived copy of his post.  I’m re-posting it to ensure I can find it again in the future, the content is his though.

Suppose I have 1 date field and I want to split the day, month and year into 3 numeric textboxes

Field 1: MyDate
Field 2: MyDay
Field 3: MyMonth
Field 4: MyYear

Solution:
1. Set Default Value of Field MyDay to normalize-space(substring-after(substring-after(../my:MyDate, “-”), “-”))
2. Set Default Value of Field MyMonth to normalize-space(substring-before(substring-after(../my:MyDate, “-”), “-”))
3. Set Default Value of Field MyYear to normalize-space(substring-before(../my:MyDate, “-”))
4. Test your InfoPath Form

Explanation
As the date is always saved in the same way in the XML file, we can use substring-before and substriong-after to get the information.

SharePoint 2010: Access Denied when creating new Enterprise Wiki Page

We had an issue where an account had full control access on a Enterprise Wiki but was getting the “Error: Access Denied” message when trying to add a New Page.

Error: Access Denied

The “New Page” option was visible in the Site Actions menu, and you were able to enter a page name, but then when you clicked on Create you got the access denied message.

The issue ended up being that the permissions on the site collection’s masterpage/page layout library had been edited.  Go to Site Settings > Master pages and page layouts (in the Galleries section) > Library > Library Permissions.

All groups/accounts on the site collection need to have at least read access.

Search Results not displaying Image URL’s or Other Publishing Fields

Property doesn’t exist or is used in a manner inconsistent with schema settings

This is the error message I get when I try to include the Publishing Rollup Image (ows_PublishingRollupImage) or the Publishing  Image (ows_PublishingPageImage) Managed Metadata Property into my Search Core Results.  It turns out that publishing fields including the Image fields cannot be indexed for search.

If you create your own image column then that url can be indexed for search, but your column will not have the publishing feature which allows users to browse to/find their image in the site collection.

For more information see Sjoert Ebben’s post which refers to the SharePoint 2007 which still exists with 2010:
http://sjoere.blogspot.com/2009/12/publishing-image-does-not-get-indexed.html

 

Metadata columns (Wiki Categories) not Visible for end users

We had an issue where none of the metadata columns including the wiki categories column were visible to end users in webparts or list and library views.  The end users could see the metadata column displayed on wiki pages, in item properties, and even add the tags to pages or documents.  But couldn’t see them in any kind of list view.

I finally found a post that referenced the problem:
http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/d67f6fc1-c048-4746-9baa-d40fd180b75f

It turns out that on every site collection there is a hidden Taxonomy list, which can be browsed by putting this on the end of your Site Collection URL: Lists/TaxonomyHiddenList/

The permissions on this list for this one site collection were all messed up, I just changed the permissions on this list to inherit from parent and it fixed all my issues throughout the site collection.  How the permissions on this hidden list ever got messed up in the first place is beyond me.  Hopefully this helps whoever else comes across this problem as well.

SharePoint 2010: Displaying Number fields without the comma’s

In some instances you don’t want number fields to display with comma’s in SharePoint views. Unfortunately there is no setting to not display comma’s on number fields like there is with excel. Instead you need to use a calculated field to display your number field.

For this example I’m going to display a number column (Alias) in a calculated field (Alias Number).
Create a calculated field, and for the formula type:
=text(

Then insert your number column (this step is important, you can’t just paste the formula because SharePoint doesn’t pick up the field mapping)

then type:
,”0″)

Your formula should display something like this: =text(Alias,”0″)

Choose a number field, with 0 decimal places and click OK.

This should display your number column without the commas while retaining the benefits of using a number field (field validation & sorting)

*You could use a text field instead of a number field which will display the numbers as they are entered and not insert the comma’s. The problem with this solution is that users will no longer be forced to enter numbers into the field and sorting will not always work correctly. For example:
Number field sort:
100
101
102
1001
10001

Text field Sort:
100
10001
1001
101
102

InfoPath 2010: Repeating table incremental row number

This post will show you how to create an auto generated row number for your repeating table in InfoPath.  Having a numbered column in your repeating table helps separate the user entries:

First create a repeating table with an extra column for the Row Number.  I would recommend re-naming both the repeating table and row so it’s not group1 and group2.  In this example I’ve named them RemoteSiteRepTable and RemoteSiteRepRow.  The row name is especially important as you will be using it in your formula.  I also renamed the first field to RowNum:

Right click your RowNum field and choose Textbox Properties.  Change the Data type to Whole Number (integer).  Click on the function (fx) button to open the Insert Formula window and paste the following formula (renaming RemoteSiteRow to your row name) into the value field:
count(../preceding-sibling::my:RemoteSiteRow) + 1

Hit the Verify Formula button which will resolve the formula to:
count(preceding-sibling::RemoteSiteRow) + 1

Click the OK button to return to the Text Box Properties screen and make sure the Refresh value when formula is recalculated checkbox is selected and hit the OK button:

InfoPath 2010: Multi-line Text fields publishing to SharePoint

If you publish a Multi-Line textbox from InfoPath to a SharePoint column, you might discover that the text cuts off after 255 characters.  This is because InfoPath maps the textbox control to a “single line of text” column type regardless of whether the InfoPath textbox is mutli-line or single.

The work around for this is to manually create a “multiple lines of text” column type in the destination library and then CHANGE the InfoPath field mapping to this new column.  Before you begin you must have already published the form to a SharePoint library and included the InfoPath multi-line text field in the published columns.  Once this has been done go to your SharePoint form library and create a Multiple lines of text column:

I usually just add the word “Text” to the end of the column name to make it unique.  So if the InfoPath field was named “Request Info”, I would name the SharePoint column “Request Info Text” to make it unique.

Choose the Multiple Lines of text option.  Check the Yes button to allow unlimited length in document libraries.  Click on the OK button.

Now go to your InfoPath form, choose the top File tab, the side Publish tab, and click on the SharePoint Server button.

Since we have already setup the publishing settings to the SharePoint Library before we started, just hit Next for the Location, Next for the Type of Form, Next for the location of the form, and you should see the list of Columns:

Highlight the InfoPath multi-line field name (Request Info) and click Modify.  From the Column Name dropdown box select the new SharePoint multi-line column (Request Info Text) and click OK.  You have now mapped the InfoPath field (Request Info) to a multi-line SharePoint column (Request Info Text).  Click Next and then Publish to complete the wizard.