Posts

Showing posts with the label custom list

How To Set Up a Personalised Shortcuts List on a SharePoint Site

Image
What is this?   A tutorial on how to set up a cool list on SharePoint where staff can manage their favourite links, ideally on the homepage of your intranet. This keeps all their commonly accessed web-stuff 1 click away, and it means you do not have to fill up your SharePoint navigation with 100's of useless links that only 5-10 people use. Woah that sounds sweet, how is that even possible!?   Well I'm going to show you how, in this tutorial we are using SharePoint Online, because then this post will be relevant for more than a year. Step 1:  Create a Custom List called 'Personal Shortcuts' by clicking Settings > Add an app , and selecting 'Custom List'. Step 2: Create a new column in your new list by clicking the List Tab > Create Column .  Call the new column ' Shortcut ', Set the Type as ' Hyperlink or Picture ' & make sure the column requires a value . Step 3: Now we need to remove the Title column from this list...

SharePoint 2010 - Items Added By Anonymous Users Cannot Start Workflows

Image
On a public-facing website on SharePoint 2010, I was building a simple list to be used as the Contact Us form, so that when an item is added to the list, a workflow will run which sends an email to the owner of the website. It all worked fine until I tested as an anonymous user that wasn't logged in.  I could create the item fine, but the workflow would not run.  The reason for this is, when an item is created by an anonymous user, the item does not set an author against itself (created by, modified by), which means the Workflow does not know what permissions it should use to run. Turns out there's really only one way to get around this.  Open up your old mate Visual Studio and create an Event Receiver on the ItemAdded event.  What needs to happen is as soon as the item is added to the list, the event receiver will grab the item, and set the Author value to something generic (I used the System Account), then run the workflow. (code in text at the bottom of thi...