Archive

Posts Tagged ‘Office 365’

Windows PowerShell Command Builder

October 28, 2011 Leave a comment

Office 365 Options

August 19, 2011 Leave a comment

Office 365 has Options..here is a good article that might clarify things for you.

Enjoy,

Tim

 

 

————–

Microsoft Get to the Point Blog

on 8/19/2011 6:58 AM

So maybe you’re aware that Microsoft’s Cloud is a
reliable option for your office and you’d like to begin a trial deployment of
SharePoint Online. Your next big question may be: “Which SharePoint Online do I
choose?” You know:  “Where do I start?”

If you’re wondering about this, as a relative
veteran of SharePoint, I can tell you that it’s best to start with a plan. In
fact, the more comprehensive the plan is, the better it will be in the long run.
I know, “no battle plan survives contact with the enemy” (the enemy, in this
case, being the unforeseen vagaries of IT), but that doesn’t stop generals from
planning, and it shouldn’t stop you either.
It may not be news to you that there are two
Microsoft Office 365 trial offerings out there:
This one:
and this one:
If you weren’t aware of this already, then consider
yourself forearmed: these two plans have two different flavors of SharePoint
Online that are, by implication, appropriate for businesses according to the
number of people in a given organization. For many scenarios, choosing your
Office 365 plan by the number of employees will be appropriate. However, I’m of
the mind that it is ultimately simpler to choose your Office 365 plan based on a
discrete set of needs: your organization’s needs. Here are two examples of
organizations with different needs for their SharePoint sites:
Contoso’s priorities:
  1. I need a place for document
    collaboration.
  2. I need to store and collaborate on
    hundreds/thousands of files.
  3. I need a secure site with encrypted traffic, because
    we may need to store sensitive data.
  4. I also need a site that is a kind of ‘home-page’ for
    everyone in my office.
  5. It would be nice to have automation when I need
    files and documents reviewed.
  6. I will need access to Microsoft Support when I run
    into trouble.
Fabrikam’s priorities:
  1. I need SharePoint Lists we can all work on and store
    files in.
  2. I need a public-facing site that tells the world
    what it is we do, and present findings.
  3. I need to be able to change and brand my site easily
    on the Internet.
  4. Search is going to be critical because, internally,
    I’ll need to find documents quickly and efficiently.
  5. My company relies on Wikis, Blogs, and Discussions
    heavily to keep people in contact, and keep projects on track.
  6. My SharePoint Online Administrator will troubleshoot
    issues and is involved in the SharePoint Online forum.

Even a short list of priorities puts you in a good
position when you begin planning.

You should look at your trial as an opportunity to
scope your SharePoint needs. This sort of thinking will be valuable to you if
your trial is a roaring success, and suddenly, you’re hearing in the lunchroom
that you’re a genius, and your site will be more widely adopted in your
organization. As fair warning, it’s not uncommon for people to create a
SharePoint test site, turn around, and find it has come into serious use.
SharePoint is very handy for people, combining essentials like document
collaboration with the practicality of uncluttering client shares and desktops
(backed-up file storage).

SharePoint can go from “trial” to “mission critical”
very quickly. If that happens, it will be easier on you and your colleagues if
your trial site was planned to proper scale from the start. Keep in mind that,
currently, it is quite difficult to transition from the small business Office
365 plan to the enterprise Office 365 plan, or vice versa. There is no simple
and straightforward story around such a move. In any case, your best defense is
your plan, which will dramatically increase the probability that you will deploy
the right Office 365 plan (and, therefore the right version of SharePoint
Online) for you.
Once you have your list of needs it’s time to ask –
What can SharePoint Online do?
There are two essential resources you should have on
hand.
(You will need to select the SharePoint
product.)
Do you have to read both of these in their entirety?
Well, you’re unlikely to see such critical SharePoint Online information
condensed in one place outside of these documents, unless you’re reading the SharePoint
Online Release Notes
. However, for my money, you can begin your scan of the
documents in the Appendices. There, you’ll find a list of SharePoint Online
features that are available in SharePoint Online for midsize businesses and
enterprises (known as SPO-S for Standard) and features available in SharePoint
Online for professionals and small businesses (which is known as SPO-L for
Light).

Why are these matrices important? Well, let’s look
back at the Contoso priorities. Specifically, let’s look at Contoso’s
requirement for “a site that is a kind of ‘home-page’ for everyone in my
office.” Maybe the general consensus on this is that, beyond the team site, each
person should be showcased on their own site, where they control their own
content, a location where other members can visit and leave or receive updates
on work projects. In SharePoint Online, this concept is known as a My Site, and
the ability to leave messages on My Sites is possible through Noteboard. You can
also update your Recent Activities and maintain your own Newsfeed so that
colleagues will always know — whether you work from home, or from the road —
where your projects are. If one of your top priorities is that everyone in your
office has the ability to create this kind of a personal web site, the Service
Descriptions will let you know that, no matter the number of people in your
organization, you need Office 365 for midsize businesses and enterprises to meet
this need. In fact, the Service Description for Office 365 for professionals and
small businesses states that My Sites do not exist in the installation, which is
truly designed to have a light footprint.

The Service Descriptions may be some of the most
helpful collections of information you could have on your desk. For instance,
did you know that in the Office 365 for professionals and small businesses, your
SharePoint Online storage options are as follows?

​Feature Description​
Storage​ 10 GB with additional 500 MB per
user​
Buy additional storage​ No​
Max Org Users​ 50​
Partners Access Licenses (External
Sharing)​
Limited to 50 external users/month

 

That means the maximum amount of storage is between
34.5 and 35 GBs of space (given 50 users). If the quantity of files and
documents you need to store on your SharePoint sites is going to exceed 35 GBs,
then, no matter the number of users in your business (be it 50 or 15), Office
365 for professionals and small businesses won’t have enough storage to
accommodate you.

However, the Office 365 for enterprises Service
Description clearly states:
“SharePoint Online allocates an initial 10 GB of
storage plus 500 MB for each user. This storage is pooled and available for
allocation across multiple site collections. For example, an organization of
1,000 users by default would have a base of 510,000 MB (510 GB) of storage. In
addition, users can purchase more SharePoint Online storage in GB increments
charged monthly, currently $2.50USD/GB/month.”
You may look around you, discuss the matter, and
realize you will never require extra storage, but you can only ask some
questions after arming yourself with the proper information.
Another critical consideration is “When things go
wrong, how do I get help?” I’ve yet to see a computer system that is flawless –
I imagine we could compare notes – so be certain you spend a little time
determining how this will be done. Consult your Service Descriptions and look
for “Support” or “Help.” Take a look at the excerpts below.
Office 365 for enterprises Service
Description:
“The Microsoft Office 365 technical support team
provides supports services to people with administrator permissions for their
company’s Office 365 services. Those with administrator permissions provide
support services to their company’s Office 365 end users. For contact
information, see Online Help in the services Administration
Center.”
Office 365 for professionals and small businesses
Service Description:
“Customers who purchase Microsoft Office 365 for
professionals and small businesses have the Microsoft Office 365 Community (www.community.office365.com)
available as the primary way to have technical and billing issues resolved.
Telephone support for any technical questions is not provided in the cost of the
subscription.”
One thing I’ve learned from these documents is that,
when it comes to choices, it may not matter what size your business is. What
does matter is what your business needs. So plan accordingly, and good
luck!
Tracy​

 

Original Link

Storming the Could

 

 

 

 

Office 365 Video: Manage employee schedules

July 28, 2011 Leave a comment

Here is a really good one that shows the power of SharePoint and Outlook.

Enjoy,

Tim

*********

Have you started using Office 365? Do you need to manage employee absence requests and vacation schedules? This short video shows you how to manage employee schedules using SharePoint Online calendars, Outlook, and SharePoint’s Approval Workflow

If you can’t access the video from here, go to Manage
business and employee schedules
.
IMPORTANT THINGS TO KNOW
You should know that the services and features this
video shows depend on several factors, such as the Office 365 plan purchase
agreement, licenses that might be assigned to each user, and specific user
permissions.
The scenario presented in this video requires Office
365 for professionals and small businesses.
If you want to learn more about using SharePoint
calendars with Outlook, check out the following topics:
Original URL

Creating a SharePoint 2010 Workflow using SPD 2010 and Visio 2010 – re-post

July 27, 2011 Leave a comment

SPD 2010 is a powerfull tool, and there are a lot of things that can be done with it. I know “Real Developers” hate it and think you must use Visual Studio. I disagree, and don’t think needs to be custom code and deployed solutions. The power of SharePoint allow for some pretty good applications to be built using some user friendly tools. There is a place for both in SP2010.

 

Enjoy,

Tim

 

The original link:

http://blogs.msdn.com/b/sharepointdesigner/archive/2011/05/19/creating-a-sharepoint-2010-workflow-using-spd-2010-and-visio-2010-how-to-amp-faq.aspx

—————-

Hello all, my name is Sam Chung and I’m a PM on the SharePoint Designer team. In this blog I’m going to talk about how you can use Visio 2010 and SPD 2010 together to create workflows. In addition, I’m going to touch base on some common issues and questions people run into when using the two tools together.

To set the stage we need some context regarding the relationship between SPD and Visio. There are already a number of resources out there regarding how you can use the two together. In particular the follow blog entries describe this from Visio’s side:

http://blogs.msdn.com/b/visio/archive/2009/11/23/sharepoint-workflow-authoring-in-visio-premium-2010-part-1.aspx

http://blogs.msdn.com/b/visio/archive/2010/01/19/sharepoint-workflow-authoring-in-visio-premium-2010-part-2.aspx#comments

However, as the above blog posts are quite dated, I’ve decided to bring a fresher relook at using the two together. In addition, I will be diving a bit deeper into some areas, and going over some common issues people have already been hitting.

Background

For this blog I’m going to assume you haven’t seen any previous information relating Visio and SPD, and as such, I’m going to set some background. If you’re already fairly familiar Visio and SPD I’d suggest you skip this section and move onto the next sections.

The SharePoint Designer 2010 team has partnered with Visio to allow users the ability to use the two tools together in creating and viewing workflows. This blog will focus more on the creation piece of the partnership and will not touch too much on the server side visualization (let’s leave some stuff for another blog).

The creation of a workflow can now happen in two ways. Users can use the regular sentence based designer within SPD to create/edit workflows, or they can use Visio client. Since the creation of workflows within the Sentence based designer is something that is fairly well known, I’m going to concentrate on how users can use Visio Client to create and edit workflows.

**NOTE** You need to have Visio 2010 Premium to be able to do this. In addition, SPD 2010 and Visio 2010 must be installed together on the same machine

This partnership was created to help those who are more comfortable with Visio to be able to use a more familiar design surface. At the same time, the Visio design surface offers a very unique view of the workflow that many users may find useful when designing/reviewing workflows. Although the entire workflow cannot be created in Visio, users are still able to create the overall “flow” of the workflow and then finish setting the parameters within SPD.

Creating a Workflow Diagram in Visio

1. Start Visio 2010 Premium

2. Create a new Diagram

clip_image002

3. Under Template Categories, select “Flowchart”.

clip_image004

4. Then select Microsoft SharePoint Workflow

clip_image006

5. Press the Create button found on the right side.

clip_image008

***Note*** There is no difference between selecting US Units or Metric Units. Both will create the same workflow diagram.

6. You will be presented with a blank canvas. Before you start, you should know that you need to insert the Start Shape clip_image010 and End Shapeclip_image012.

· All SharePoint workflows need to have these shapes.

· All of the workflow shapes you add need to be inserted between these two shapes.

7. All of the workflow shapes have been organized into categories within the stencil pane.

clip_image013

· Quick Shapes – contain the shapes that are placed in the “top portion” within each of the different categories.

***Note*** Quick shapes are a great way of speeding up the workflow creation process. Every category within the stencil has a quick shapes section. For example, if you look the SharePoint Workflow Actions category, you’ll see how there’s a thin line separating the top set of actions from the bottom set of actions.

clip_image015

The actions located at the top are the “Quick Shapes” for that category. Quick Shapes are not automatically selected based off usage or anything like that. Instead, the shapes in this section are simply user settable. Go ahead and click and drag any shape you want above the line and that shape will become part of the quick shapes list. You can then use these shapes to help create your diagram a lot quicker. The top four quick shapes will appear as ghosted option on shapes within the canvas. (Simply mouse over the light blue arrow heads on the side of any shape to see this)

clip_image017

· SharePoint Workflow Actions (XXX units) – is where all of the SharePoint Workflow actions are stored

· SharePoint Workflow Conditions (XXX units) – is where all of the SharePoint Workflow conditions are stored

· SharePoint Workflow Terminators (XXX units) – is where you will find the Start and End workflow shapes that I described in step 6

***Note*** The SharePoint Workflow Actions shown in the stencil pane are not filtered based off the type of workflow you would like to create. Normally, when you create a workflow in SPD, the list of actions you are presented with is filtered to just the set of actions that are relevant to the type of workflow you are creating. So if you are creating a List workflow you will only see list workflow actions, this is the same for the site workflows and reusable workflows. However, in Visio client there is no filtering on the list of actions made available to you. As such, when creating workflows using Visio, you will need to make sure that you only use actions that are relevant for the type of workflow you are creating.

In addition, none of the site workflow specific actions are available here. As such, you will not be able to create Site Workflows using Visio Client. During Import you will notice that there is no option to create site workflows based off a Visio Diagram.

8. Go ahead now and add the shapes you’d like and create your workflow. For this blog I have created a very simple example.

clip_image019

***Note*** Don’t forget to set the Yes/No options on all conditional shapes. A quick way to do this is to just right click on any of the connectors coming out of a conditional shape and select “yes” or “no”.

Exporting / Importing between Visio and SPD

By this point you are trying to get your Visio Diagram from Visio to SPD. The next couple sections will cover the best ways to do this.

Going from Visio to SPD

1. Once you have created your diagram and you’re ready to send it to SPD you need to first press the “Export” button

· This button is found in the “Process” tab

clip_image021

2. If there are errors within your diagram they will appear in the error pane.

clip_image023

***Note*** Visio at this point in time is checking to make sure that the diagram you are trying to send to SPD is a diagram that can be converted directly into a workflow. But it is only checking between the start clip_image025 and end clip_image027 shapes. Everywhere else is fair game for you to place whatever Visio shapes you may want. Just make sure that everything between the Start and End shape are workflow shapes, and that they are connected properly.

3. Assuming the validation passed (if it didn’t pass, and you have errors, go fix the error first and then come back) you’ll be presented with an Export Workflow dialog where you can specify where you want the VWI file saved. Select a location, name your file and press Save (I called mine “Simple Workflow” and saved it on the desktop).

***Note*** The VWI you are saving represents an Open XML file, basically a zip file, that contains several other files within it. You can go ahead and use your favorite zip program to unzip the file and take a look at what files exist within it. But generally, you will find the following files:

[content_types].xml

Workflow.vdx

Workflow.xoml

Workflow.xoml.rules

In general, the ones you will care most about are the .vdx file and the .xoml files. The vdx file is the Visio diagram you just created. And the .xoml files represent the actual workflow xoml that would be run once the workflow is published. Right now, the .xoml files won’t have much in them because this workflow hasn’t been properly configured yet in SPD. But once we finish configuring this workflow and if we were to export out the workflow again from SPD you would see a lot more info in the .xoml files. You’d also see a workflow.config file that outlines additional details regarding the workflow. For now, let’s not mess with these files and just move on to the next step.

If you would like to learn more about Open XML files, please refer to the following link: http://msdn.microsoft.com/en-us/library/aa338205(v=office.12).aspx

4. Now let’s go ahead and Import in that VWI file into SPD. Open up SPD, and connect to your most favorite SharePoint 2010 site.

5. Next click on the Workflow Link found on the left navigation bar

clip_image029

6. Next go to the ribbon and press the “Import from Visio” button

clip_image031

7. This will bring up the Import Wizard. Go ahead and first select your VWI file, and press the next button

clip_image033

8. Give your workflow a name and select what type of workflow it is.

clip_image035

9. If everything has gone correctly you should see something like below:

clip_image037

Modifying the Workflow

1. You can now go ahead and start setting the parameters for each of the actions within the workflow. Once you’re done, your workflow might look something like below:

clip_image039

2. Now before you publish, let’s add another action to the workflow. I inserted a simple log to history action to the end of my workflow.

clip_image041

***Note*** Now this is a really important note. If you’re going to be adding/deleting/moving actions within your workflow, there is a very good chance that the diagram you initially started out will NOT look the same when you view it in the server side visualization. This is because when you modify action locations within SPD, the Visio Add-on inside of SPD needs to dynamically recreate the diagram and relay out the entire diagram. This means that things might look different from what you would have expected. As such, if the server side visualization is important to you, you should:

a) First Export the workflow from SPD back to Visio

b) Fix the diagram

c) Export out from Visio to SPD

d) Republish the workflow (without modifying it again in SPD)

3. Go ahead now and publish your newly created workflow.

Conclusion

Well there you have it, a quick and tightly integrated experience going from Visio to SPD. Hopefully this has been of some use to you. I’ve gone and consolidated the notes from above into a FAQ / Tips section below.

Please feel free to post questions below. I’ll try and respond to the questions as much as possible.

In addition, hopefully in the next couple weeks I will create another short follow up blog post describing in detail the experience of going from SPD to Visio, along with issues that can arise when trying to update an already existing workflow with a Visio diagram.

Thank you everyone for reading.

Sam

FAQ And Tips & Tricks

1. You need to have Visio 2010 Premium to be able to create SharePoint 2010 workflows. In addition, SPD 2010 and Visio 2010 must be installed together on the same machine

2. When creating a new Visio SharePoint 2010 Workflow Diagram, there is no difference between selecting US Units or Metric Units. Both will create the same workflow diagram.

3. Quick shapes are a great way of speeding up the workflow creation process. Every category within the stencil has a quick shapes section. For example, if you look the SharePoint Workflow Actions category, you’ll see how there’s a thin line separating the top set of actions from the bottom set of actions.

clip_image042

The actions located at the top are the “Quick Shapes” for that category. Quick Shapes are not automatically selected based off usage or anything like that. Instead, the shapes in this section are simply user settable. Go ahead and click and drag any shape you want above the line and that shape will become part of the quick shapes list. You can then use these shapes to help create your diagram a lot quicker. The top four quick shapes will appear as ghosted option on shapes within the canvas. (Simply mouse over the light blue arrow heads on the side of any shape to see this)

clip_image017[1]

4. The SharePoint Workflow Actions shown in the stencil pane are not filtered based off the type of workflow you would like to create. Normally, when you create a workflow in SPD, the list of actions you are presented with is filtered to just the set of actions that are relevant to the type of workflow you are creating. So if you are creating a List workflow you will only see list workflow actions, this is the same for the site workflows and reusable workflows. However, in Visio client there is no filtering on the list of actions made available to you. As such, when creating workflows using Visio, you will need to make sure that you only use actions that are relevant for the type of workflow you are creating.

5. In addition, none of the site workflow specific actions are available here. As such, you will not be able to create Site Workflows using Visio Client. During Import you will notice that there is no option to create site workflows based off a Visio Diagram.

6. Don’t forget to set the Yes/No options on all conditional shapes. A quick way to do this is to just right click on any of the connectors coming out of conditional shape and select “yes” or “no”.

7. When trying to export out a diagram from Visio, Visio is checking to make sure that the diagram you are trying to send to SPD is a diagram that can be converted directly into a workflow. But it is only checking between the start clip_image043 and end clip_image027[1] shapes. Everywhere else is fair game for you to place whatever Visio shapes you may want. Just make sure that everything between the Start and End shape are workflow shapes, and that they are connected properly.

8. The VWI you are saving represents an Open XML file, basically a zip file, that contains several other files within it. You can go ahead and use your favorite zip program to unzip the file and take a look at what files exist within it. But generally, you will find the following files:

[content_types].xml

Workflow.vdx

Workflow.xoml

Workflow.xoml.rules

In general, you will care most about the .vdx file and the .xoml files. The vdx file is the Visio diagram you just created. And the .xoml files represent the actual workflow xoml that would be run once the workflow is published. The .xoml files won’t have much in them when exported from a new Visio diagram; this is because this workflow hasn’t been properly configured yet in SPD. But once you finish configuring this workflow and if you were to export out the workflow again from SPD you would see a lot more info in the .xoml files. You’d also see a workflow.config file that outlines additional details regarding the workflow.

If you would like to learn more about Open XML files, please refer to the following link: http://msdn.microsoft.com/en-us/library/aa338205(v=office.12).aspx

9. If you’re going to be adding/deleting/moving actions within your workflow, there is a very good chance that the diagram you initially started out will NOT look the same when you view it in the server side visualization. This is because when you modify action locations within SPD, the Visio Add-on inside of SPD needs to dynamically recreate the diagram and relay out the entire diagram. This means that things might look different from what you would have expected. As such, if the server side visualization is important to you, you should:

a) First Export the workflow from SPD back to Visio

b) Fix the diagram

c) Export out from Visio to SPD

d) Republish the workflow (without modifying it again in SPD)

iPad and SharePoint – End User – NothingButSharePoint.com

July 26, 2011 Leave a comment

I found this one and had to re-post it…

Enjoy,

Tim

——————

iPad and SharePoint – End User – NothingButSharePoint.com.

 

 

The last couple of weeks I have been focussing on finding a solution to let the iPad communicate with SharePoint. In my research on the Internet I found the following applications:

  • SharePlus
  • Documents to Go

With these two applications you can use the iPad to view your SharePoint portal and, for example, add announcements or edit documents.

SharePlus

SharePlus is an application created by Southlabs (http://www.southlabs.com). By using SharePlus you can view your SharePoint portal on the iPad (or iPhone, Mac and playbook) and perform most of the actions you normally would, by using the browser. I used the Pro version ($ 15) but you can try out the free version. Check out this URL for the differences between the two:

http://www.southlabs.com/detail.aspx?id=SharePlus

The start screen of SharePlus will look like this:

2011-07-15-iPadandSP-Part01-01.png

You can now add the SharePoint site you want to view. By using the Navigator menu you add three type of SharePoint portals:

  • On Premise
  • Form based authentication
  • Office 365

The first two you would expect but I am pretty excited about the third option. Southlabs made it possible to use SharePoint Online 2010 from the Office 365 suite. That is really fast and impressive. After you’ve added the SharePoint Online site you will have to use your credentials:

2011-07-15-iPadandSP-Part01-02.png

I advise selecting the Keep me signed in option so you don’t have to do this every time 😉 After you’ve signed in, you will see the content of the SharePoint site:

2011-07-15-iPadandSP-Part01-03.png

You immediately have a nice overview of all the lists and libraries your SharePoint site contains. It is really easy to create new items. Let’s create an announcement (aankondigingen in Dutch). Just click on the list and on the + sign in the top right corner:

2011-07-15-iPadandSP-Part01-04.png

Now choose Add announcement and the create item screen will appear:

2011-07-15-iPadandSP-Part01-05.png

The create item screen looks similar to the browser version and will show all the standard and custom columns. After creating the announcement it will appear in the list:

2011-07-15-iPadandSP-Part01-06.png

You can easily edit or delete it by selecting the item and using the edit button in the top right corner. This works the same for all the other SharePoint items (apart from documents, but more about that in my follow up blog post).

Documents to Go

Documents to Go is an application to create and edit Office documents on non-Microsoft devices. The application has been created by Dataviz (http://www.dataviz.com/products/documentstogo/). It costs around $ 10 so that is not too bad. You can create the following documents:

2011-07-15-iPadandSP-Part01-07.png

There are a couple of nice design options available:

2011-07-15-iPadandSP-Part01-08.png

You can make text bold or italic, or just give it a nice blue colour 2011-07-15-iPadandSP-Part01-11.png

2011-07-15-iPadandSP-Part01-09.png

The other features are aimed at aligning text, and in the picture below you can use bulleted or numbered lists.

2011-07-15-iPadandSP-Part01-10.png

So you can use a number of features to create a Word document. The same applies for Excel and with PowerPoint you get three templates to create presentation slides.

I hope you’ve gotten a nice overview of these two applications. In my follow up blog post I will show you how editing documents works with SharePlus and Documents to Go.

Categories: SharePoint Tags: , , , , ,

External Account Access to Office 365 SharePoint Online

July 20, 2011 Leave a comment

I often get asked, “How can I give someone access to SharePoint that is not an employee?” In BPOS my answer was always “Buy a User License and create an account for them.” In the new world, Office 365, SharePoint Online has the ability to invite users outside your organization to view and/or edit your site. This has the potential to be very powerful for your organization.

I am still testing some more “how do I…” stuff, but for now it looks like your external invitee’s need to have a Live ID for you to use in in order for this to work. If your user doesn’t have a Live ID, make one for them, it only takes a few mouse clicks to do so.

Here is a sample of the invitation:

 

Welcome to Super Great Company LLC!

Tim Reemtsma (tim@yourdomain.com) has invited you to collaborate on Super Great Company LLC

Accept your invitation!

 

Accept Tim Reemtsma’s invitation to start collaborating now. You can bookmark the site Super Great Company LLC to access it later.

Sincerely,
The Microsoft Office 365 Team

Microsoft Corporation | One Microsoft Way Redmond, WA 98052-6399
This message was sent from an unmonitored email address. Please do not reply to this message.

Privacy | Legal

 

You then jump to a page like this:

As long as the Live ID they use to sign in matches the Live ID you sent the invite to, that will have access.

From the cost savings alone of not needing to use up an Office 365 User License, this can be a HUGE benefit to your company

 

 

I’m still playing with this, and will update this post as I learn new things.

 

Enjoy,

Tim

 

Build Workflow Solutions for SharePoint Online

July 7, 2011 Leave a comment

I saw this article in MSDN Magazine. I wanted to make sure I had it as a reference for future use as well as something to pass along to power users to help them build SharePoint workflows. Count me in as a new follower of Chris.

@chrisdmayo

http://blogs.msdn.com/cmayo/

Enjoy,

Tim

——-

Chris Mayo

Download the Code Sample

Many organizations have adopted SharePoint to facilitate collaboration among their information workers. These organizations often use SharePoint to store information in lists and document libraries to support a manual business process. While storing this information in SharePoint does make it easier to collaborate around that information much more effectively, a significant boost in information worker productivity can be realized by automating those business processes within SharePoint in the form of SharePoint workflows.

With the release of Office 365, SharePoint Online gives organizations many of the same collaboration benefits as SharePoint while also providing the advantages of a cloud-based Software as a Service. SharePoint Online supports workflow through declarative workflows built in SharePoint Designer 2010 and deployed through sandbox solutions. If the built-in workflow actions don’t support the requirements of the workflow solution, you can build custom workflow actions using Visual Studio 2010 and deploy them to SharePoint Online via sandboxed solutions.

In this article, I’ll provide an overview of workflow support in SharePoint Online, build a declarative workflow using SharePoint Designer 2010, augment that workflow via a custom action and deploy it to run in the cloud as a sandbox solution in SharePoint Online.

For information on how SharePoint Online development is similar to and different from SharePoint 2010 development, see my article, “Cloud-Based Collaboration with SharePoint Online,” published in the March 2011 issue of MSDN Magazine (bit.ly/spodevmsdn). And for more details on SharePoint Online and Office 365, including how to sign up for a trial account, visit office365.com.

SharePoint Online Development Overview

SharePoint Online lets you create collaboration solutions using the same skills and tools used in developing for SharePoint 2010, including Visual Studio 2010, SharePoint Designer 2010, C# or Visual Basic, and the SharePoint APIs and SDKs. While there are a number of similarities between developing solutions for SharePoint 2010 and SharePoint Online, there are differences that will affect what solutions can be built and how those solutions are built.

SharePoint Online only supports sandboxed solutions, which means you can’t deploy code-based workflows, including solutions built with the Sequential Workflow and State Machine Workflow project items. However, workflows built using SharePoint Designer 2010 are supported because these workflows are declarative rather than code-based and can be deployed either directly to SharePoint Online or via the Solution Gallery using package files. Furthermore, you can extend these declarative workflows via sandboxed solutions built with Visual Studio 2010 to provide custom workflow actions to support scenarios that SharePoint Designer 2010 doesn’t support out of the box.

This article will build on the concepts and solution covered in the previous article. I encourage you to read that article, follow the guidance provided to set up your SharePoint Online development environment and build the purchasing solution examples so you have a solid understanding of the development concepts for SharePoint Online. To illustrate workflow support in SharePoint Online, this article will extend the purchasing solution to include a workflow solution.

SharePoint Designer 2010 Overview

SharePoint Designer 2010 lets power users and developers customize SharePoint 2010 without code. SharePoint Designer 2010 also supports SharePoint Online, with the only differences coming from feature differences between SharePoint 2010 and SharePoint Online, such as BCS and External List support. SharePoint Designer 2010 is a great tool for navigating and managing artifacts in SharePoint, working with data, and for customizing the look and feel of your SharePoint sites. It also lets you create custom workflows that can be deployed as part of an overall collaboration solution. You can learn more about SharePoint Designer 2010 capabilities in the video, “Introducing SharePoint Designer 2010 for SharePoint Online” (bit.ly/spdspointro). SharePoint Designer 2010 is a free download and supports both 32-bit (bit.ly/spd201032) and 64-bit versions (bit.ly/spd201064).

The Purchasing Solution

In the examples in this article, I’ll be building on the fictional Contoso Corp. purchasing process introduced in the previous article by adding a SharePoint workflow to automate the approval of purchase requests. When a purchase request requires approval, the user will start the workflow and provide a business justification for the purchase. The workflow will initiate an approval process and create a task for the Approvers group with details on the purchase. After the approval or rejection, an e-mail will be sent to the requesting user about the outcome of the request. The workflow will then examine the request type and in the case of an approved travel request (such as to attend a technical conference), the workflow will create a sub-site for the user to fill out a trip report and upload slides. I’m going to add a RequestType field to the Non-Standard Business Purchase Requests for this purpose.

I’ve updated the PurchaseMgr project from the last article to include this RequestType field. If you followed that article, you can remove the prior package and deploy the one supplied with this article or add a required RequestType field with the choices Travel, Equipment and Service Request to the Non-Standard Purchase Requests list. I’ll start with the code from this article (bit.ly/spoworkmsdncode) and extract it to the Documents\Visual Studio 2010\Projects\SPOMSDN_Workflow directory on my local machine. I’ll then deploy the PurchasingMgr.wsp to the Solution Gallery of the site collection on my local SharePoint 2010 development environment (in my case, http://o365dpe.contoso.com/sites/spomsdnmag) and activate the Purchasing Manager–Content Types and Lists feature in my Purchasing site (http://o365dpe.contoso.com/sites/spomsdnmag/purchasing).

Creating the Workflow

To get started developing my workflow, I’ll open the Purchasing site on my local SharePoint 2010 development environment site by opening SharePoint Designer 2010, selecting File | Sites | Open Site and entering the URL of my site (http://o365dpe.contoso.com/sites/spomsdnmag/purchasing). In the Navigation pane, I’ll select Workflows to show the currently published workflow and the Workflows ribbon, as shown in Figure 1.


(click to zoom)

Figure 1 Workflows in SharePoint Designer 2010

SharePoint Online supports List Workflows that act on a specific list, Site Workflows that work on a specific site and Reusable Workflows that can be bound to a list or specific content type at a later date. I want to be able to distribute my workflow as part of an overall solution, so I’ll create a Reusable Workflow, which is the only type of workflow that supports distribution.

When creating a workflow in SharePoint Designer, I have a number of choices. I can create my workflow based on one of the built-in workflows (including Approval, Collect Feedback or Collection Signatures) using the Copy & Modify button, import a Visio 2010 diagram based on the Microsoft SharePoint Workflow template using the Import from Visio button, or create the workflow from scratch using the New group on the Workflows tab of the Ribbon. I’ll create my workflow from scratch by clicking the Reusable Workflow button in the New group of the ribbon. In the Create Reusable Workflow dialog, I’ll name the workflow Non-Standard Business Purchase Request Approval and select Purchasing Manager – Non-Standard Business Purchase Request Content Type so the workflow will be bound to my content type, as shown in Figure 2.


(click to zoom)

Figure 2 Reusable Workflow Bound to the Content Type

Next, I’ll go to the Non-Standard Business Purchase Request Approval workflow settings page by clicking the Workflow Settings in the Manage group of the Workflows tab.

In the Settings group, I’ll check the “Show workflow visualization on status page” to give my users a real-time visualization of the status of each instance of the workflow. I’ll use the Start Options group to make this a human-driven workflow by unchecking “Disable manual start option” and checking the “Disable automatic start on item creation/change option” checkboxes. You can create a machine-driven workflow by doing the reverse.

In many situations, information I need to complete the workflow is not stored in the list or library. I can collect and store that information in workflow-specific variables and columns. This can be done with the Variables group in the Workflows ribbon, as described in Figure 3.

Figure 3 Workflow Variables

Variable Type Description
Initiation Form Parameter A parameter that stores data collected from the user when the workflow is started or associated with a list.
Local Variables Private variables used to store data used in the processing of the workflow.
Association Columns Columns that are added to the list when the workflow is associated to the list to guarantee a base set of columns for reusable workflows.

In this instance, I want to collect the business justification for the purchase when the workflow is started so I can provide that information to approvers to help them make a decision. To do this, I’ll click on Variables | Initiation Form Parameters | Add… and create a Business Rationale parameter in the Add Field dialog; then click Next and Finish.

Implementing the Workflow in SharePoint Designer

At this point, I’m ready to start implementing the workflow, so I’ll select the Editor workflow button in the Edit Group of the Workflow Settings tab. I’m now in the SharePoint Designer 2010 workflow designer where I can implement my workflow using the Condition, Action and Step options in the Insert group of the Workflow ribbon (see Figure 4).


(click to zoom)

Figure 4 Workflow Designer—Insert Section

Steps are used to organize the conditions and actions in a workflow and to control how those conditions and actions are executed, as Figure 5 describes.

Figure 5 Types of Steps

Step Type Description
Step Steps are used to organize Conditions and Actions in a workflow. All conditions and actions must be completed before execution moves to the next Step. Can be nested.
Impersonation Step Workflows run under the permissions of the user who starts the workflow either manually or automatically. Steps in the Impersonation Step execute as the workflow author. The Impersonation Step can only be added as the first Step in a workflow. Steps can be nested inside the Impersonation Step.
Parallel Block When Steps are added to a Parallel Block, they are run in parallel rather than sequentially.

For example, in Figure 6, Step 2 will be executed with the workflow author’s permissions while Step 1 will be executed as the user who started the workflow (either manually or automatically). Steps 5 and 6 will be executed in parallel while Steps 3 and 4 will be executed serially.


Figure 6 Steps—Effect on Workflow Execution

In my workflow, I’ll have just one Step. To document what the Conditions and Actions do in the Step, I’ll change the title by clicking on the text “Step 1” and entering “Request Purchase Approval.” I’ll then click inside the Step so the cursor is where I need to start adding Actions and Conditions.

Actions do work within the workflow and can include starting an approval process, modifying a list item, sending an e-mail and more. For a complete list of the supported actions, refer to the SharePoint Designer 2010 reference (bit.ly/spd2010act). For this scenario, I want to start an approval process for the purchase request, so I’ll select the Action drop-down from the Insert section of the ribbon and choose Start Approval Process. This adds a sentence to the designer with hyperlinks, allowing me to complete the Action by selecting each link and providing more information, as shown in Figure 7.


Figure 7 Adding the Start Approval Process Action

Clicking on the Approval link lets me customize the approval task, including changing both how the task is processed and the task outcomes. I can return to the editor by clicking the back button. I’ll click the “these users” link to customize the task and specify who will participate in the approval process. In the Select Task Process Participants dialog, I’ll select the Approvers group as the Participants and set the title of the task, as shown in Figure 8. For the Instructions, I want to provide details about the item and the business rationale to help the approver make a decision. For example, to include the list item title, I click the Add or Change Lookup button, select Current Item as the Data Source and Title as the Field from Source.


Figure 8 Customizing the Approval Task

The final task will look like Figure 9.


Figure 9 Customized Approval Task

At this point in the workflow execution, the workflow will pause until the task is approved or rejected or, if a due date was supplied, expired. To control the flow, I’ll use Conditions.

Conditions control the logic of the workflow based on values in workflow variables or fields. For example, if the item is approved, I want to send an e-mail to the requestor and create a site if the request type is of type Travel. If the item is rejected, I want to send e-mail and delete the item. To do this, I’ll place the cursor under the approval process, click the Condition drop-down and select “If any value equals any value.” I’ll click on the “value” hyperlink and click the button displayed to show the Define Workflow Lookup dialog. For the Data source I’ll select Workflow Variables and Parameters, and for the Field from source I choose Variable: IsItemApproved. This variable is added to the workflow when a Start Approval Process task is added.

I’ll then click the equals link and select equals from the drop-down displayed. Next, I’ll click the value link and select Yes from the drop-down. I’ll place an Else-If Block under this condition so I can take action when the item is rejected. I’ll add Send and Email actions to each branch and use the String Builder to set the e-mail title, as shown in Figure 10.


Figure 10 Approval E-mail

Next, I’ll add an “If current item field equals value” condition under the If condition and base it on the RequestType field so I can create a new sub-site when the request is a travel request. The designer now looks like Figure 11.


Figure 11 The Conditional Flow of the Workflow

To create the site for Travel requests, I’ll need to create a custom workflow action because this action isn’t built into SharePoint Designer 2010. To do this, I’ll save my workflow, close SharePoint Designer 2010 and open Visual Studio 2010.

Building a Custom Workflow Action in Visual Studio 2010

You can add custom workflow actions to SharePoint Designer 2010 using Visual Studio 2010 and sandboxed solutions. These actions can accomplish any task that can be done in a sandboxed solution, which provides a lot of flexibility to SharePoint Online workflows.

In Visual Studio 2010, I’ll select File | New Project and in the New Project dialog I’ll select SharePoint 2010 templates and the Empty SharePoint Template. I’ll enter PurchasingMgrActions for the Name and Documents\Visual Studio 2010\Projects\SPOMSDN_Workflow\ as the Location and Click OK. In the SharePoint Customization Wizard I’ll enter my local development site (http://o365dpe.contoso.com/sites/spomsdnmag/purchasing) for the local site and select “Deploy as a sandboxed solution” and click Finish.

In the Solution Explorer, I’ll right click on the PurchasingMgrActions project, select Add | Class…, then name the class CreateSiteAction and click OK. The CreateSiteAction class provides the method the workflow will call to create the new site. I’ll add the necessary using statements and implement the CreateSite method, as defined in Figure 12.

Figure 12 Implementing the CreateSite Method

  1. using System;
  2. using System.Collections;
  3. using Microsoft.SharePoint;
  4. using Microsoft.SharePoint.UserCode;
  5. namespace SPDCustomWorkflowActions
  6. {
  7. public class CreateSiteActivity
  8. {
  9. public Hashtable CreateSite(SPUserCodeWorkflowContext context, string siteName)
  10. {
  11. Hashtable results = new Hashtable();
  12. try
  13. {
  14. using (SPSite site = new SPSite(context.CurrentWebUrl))
  15. {
  16. using (SPWeb web = site.OpenWeb())
  17. {
  18. web.Webs.Add(
  19. siteName,
  20. “Trip Report: ” + siteName,
  21. string.Empty,
  22. 1033,
  23. “STS”,
  24. false,
  25. false);
  26. }
  27. }
  28. results[“success”] = true;
  29. results[“exception”] = string.Empty;
  30. }
  31. catch (Exception e)
  32. {
  33. results = new Hashtable();
  34. results[“exception”] = e.ToString();
  35. results[“success”] = false;
  36. }
  37. return results;
  38. }
  39. }
  40. }

The CreateSite method follows the method signature for custom actions, passing in SPUserCodeWorkflowContext to provide access to the context the workflow is running under and whatever other parameters I need (in this case the name of the site to create). The method gets access to the site collection (SPSite) and site (SPWeb) via the context and creates the new site via the SPWeb.Webs.Add method. Results are returned via the Results Hashtable variable.

For CreateSiteAction to be added to the Actions drop-down, I need to deploy an Elements.xml file with my Feature to describe the action to SharePoint Designer 2010. I’ll add this file to the project by selecting the PurchasingMgrActions project in Solution Explorer, right-clicking and choosing Add | New Item…, then selecting SharePoint 2010 under Installed Templates and choosing the Empty Element template. I’ll name the item CreateSiteActionDefinition and click OK. This definition is accomplished by implementing an Action element in the WorkflowActions elements, as seen in Figure 13.

Figure 13 Defining the Create Site Action via Elements.xml

<?xml version=”1.0″ encoding=”utf-8″?>

 

<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”&gt;

 

<WorkflowActions>

 

<Action Name=”Create Site”

 

SandboxedFunction=”true”

 

Assembly=”$SharePoint.Project.AssemblyFullName$”

 

ClassName=”PurchasingMgrActions.CreateSiteAction”

 

FunctionName=”CreateSite”

 

AppliesTo=”all”

 

UsesCurrentItem=”true”

 

Category=”Purchasing Manager Workflow Actions”>

 

<RuleDesigner Sentence=”Create Site with name %1 (exceptions logged to %2)”>

 

<FieldBind Field=”siteName” Text=”Site Name” Id=”1″ DesignerType=”TextBox” />

 

<FieldBind Field=”exception” Text=”Exception” Id=”2″

 

DesignerType=”ParameterNames” />

 

</RuleDesigner>

 

<Parameters>

 

<Parameter Name=”__Context”

 

Type=”Microsoft.SharePoint.WorkflowActions.WorkflowContext,

 

Microsoft.SharePoint.WorkflowActions”

 

Direction=”In”

 

DesignerType=”Hide” />

 

<Parameter Name=”siteName”

 

Type=”System.String, mscorlib”

 

Direction=”In”

 

DesignerType=”TextBox”

 

Description=”Name of the site to create” />

 

<Parameter Name=”exception”

 

Type=”System.String, mscorlib”

 

Direction=”Out”

 

DesignerType=”ParameterNames”

 

Description=”Exception encountered”/>

 

</Parameters>

 

</Action>

 

</WorkflowActions>

 

</Elements>

The Action element and its attributes describe the assembly, class and method that will be called when the action is executed in the workflow. In this case, it will call the CreateSiteAction.CreateSite method. The RuleDesigner element and its FieldBind elements define the sentence that will be shown in the workflow designer and the name and type of the fields shown as hyperlinks in that sentence. The Parameters element and its Parameter sub-elements define how the RuleDesigner\FieldBind elements get passed in and out of the call to CreateSiteAction.CreateSite. For example, the __Context parameter is of type WorkflowContext and is used to pass that context into the call without being shown in the designer (by setting the DesigerType attribute to “Hide”). The siteName parameter will receive the value in the siteName field binding. This is done by giving the field and parameter the same name. Exceptions will be passed out via the exception parameter and into the exception field for the same reason.

Before I test my custom action, I’ll open Feature1 and give it a title of Purchasing Manager Workflow Actions to make it more descriptive, and change its scope to Site as required by custom workflow actions.

Deploying the Workflow Solution to SharePoint Online

To test my custom workflow action I’ll right-click on the PurchasingMgrActions project in Solution Explorer and select Package to package the solution. I’ll then upload the PurchasingMgrActions.wsp to the Solution Gallery in my local development site collection (http://o365dpe.contoso.com/sites/spomsdnmag) to deploy the custom workflow action.

Now, when I open SharePoint Designer 2010 and my Non-Standard Business Purchase Request Workflow Approval workflow in the workflow editor, my custom workflow action is displayed in the Action drop-down under the Purchasing Manager Workflows category, as shown in Figure 14.

Figure 14 Create Site Custom Action in Workflow Designer

After setting the Site Name variable to Current Item:Title, my workflow is complete and ready for testing (see Figure 15).

Figure 15 The Completed Workflow

To get ready for testing, I need to publish the workflow to my local development site and associate it to my list. To publish, I select Publish in the Save section of the ribbon. When the publication is complete, I’ll navigate to my Non-Standard Business Purchase Requests list on my local development site, click the List tab and select Workflow Settings in the Settings section of the ribbon. Under “These workflows are configured to run on items of this type,” I’ll select Purchasing Manager – Non-Standard Business Purchase Requests and choose the “Add a workflow” link. I’ll select my Non-Standard Business Purchase Request Approval workflow as the template and give the workflow the name Non-Standard Business Purchase Approval and click Next and then click Save.

At this point I can run my workflow. I’ll select the first item on my list, then choose Workflows in the Workflows section of the ribbon and click on the Non-Standard Business Purchase Approval workflow to start the workflow. I’ll then be prompted to enter a business justification as specified in my Business Rationale Initiation Form Parameter.

I’ll supply a justification like the one shown and click Start to start the workflow. I can then go into the Workflows page for the item and select the in-progress workflow to see the Workflow Information page, which includes a visualization of the workflow. When the task is approved, the diagram is updated, as seen in Figure 16.


(click to zoom)

Figure 16 Workflow Information Page with Visualization

I can then go to Site Actions | View All Site Content and see the site that was created by my custom workflow action.

At this point I’m ready to distribute my workflow solution to SharePoint Online. To get the package file for my Non-Standard Business Purchase Request workflow, I’ll open the workflow in SharePoint Designer 2010 and select the Save As Template option from the Manage section of the ribbon to save the workflow to the Site Assets library. I can then take the package files PurchasingMgr.wsp (or modify the existing list if already deployed), PurchasingMgrActions.wsp and Non-Standard Business Purchase Request Approval.wsp from the Site Assets library and upload them into the Solution Gallery in my SharePoint Online site collection. Note that the features must be activated in this order based on the 
dependencies between the features (this can be automated via feature activation dependencies). After activating the workflow feature in my site and associating the workflow to my list, I can follow the same steps to test my workflow in SharePoint Online.

Wrapping Up

Automating business processes via workflows in SharePoint Online can make collaboration even more effective beyond merely storing information in SharePoint Online. In this article I showed how to implement a workflow in SharePoint Designer 2010, extend that workflow with a custom workflow action developed with Visual Studio, and then distribute that workflow via package files created by SharePoint Designer 2010 and Visual Studio 2010. I encourage you to dive deep into workflow development in SharePoint Online. Your users will be impressed at how their manual, error-prone business processes become more efficient with less effort when automated in SharePoint Online workflows.

Chris Mayo
is a technology specialist focusing on SharePoint Online and has been with Microsoft for 10 years. He coauthored “Programming for Unified Communications with Microsoft Office Communications Server 2007 R2” (Microsoft Press, 2009). Prior to joining Microsoft, he served as a developer and architect in the IT departments of Fortune 500 companies in the retail and finance industries. Keep up with Mayo at his blog, blogs.msdn.com/b/cmayo.

Thanks to the following technical experts for reviewing this article: Mark Kashman, Keenan Newton, AJ May and George Durzi