Tag Archives: SP2010

Getting Answers Back from the Start Approval Process Activity

I’ve been playing around with SharePoint Designer workflow’s fancy new “Start Approval Process” activity and was quickly stymied because I couldn’t right away answer the question, “was it approved or not?”. 

The short answer is that it’s quite easy to get the answer.  When you add this activity to your main workflow, SPD adds a bazillion variables to the Workflow Variables and Parameters data source, as you can see here:

SNAGHTML2350fe72

You’ll also note that if you add more than one of these, SPD appends a “1” and so forth to all of the variables. 

I found that when I deleted the first “Start Approval Process” activity, the first set of associated workflow variables remained (sadly).  So, be careful how you use this because otherwise, you’ll end up with  a very cluttered list of workflow variables.

I give Microsoft credit for following the “is” naming convention for a Boolean variable.  This convention makes it pretty clear what kind of data is supposed to be there.

In researching, I found this helpful article: http://office.microsoft.com/en-us/sharepoint-designer-help/workflow-actions-in-sharepoint-designer-2010-a-quick-reference-guide-HA010376961.aspx.  It doesn’t really address this specific issue, but has some good information on the topic so I’d go there if you want to learn more about this specific activity and its siblings.

</end>

Subscribe to my blog.

Follow me on Twitter at http://www.twitter.com/pagalvin

Use owssvr.dll to Display Useful Site Information in SP2010

I was reading forums this afternoon and learned something new (something that happens almost every day).  This is the posting:

http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/1cbdb0b4-eeda-4c61-9a52-da6212eebec5/

Basically, you can get some interesting information about a site by invoking owssvr.dll against it (h/t to Bil Simser and John Timney).

I gave this a try in a both a MOSS and an SP2010 environment.  It worked fine in the MOSS environment.  However, in the 2010 environment, Internet explorer didn’t want to download the XML:

image

As you can see, I know it had 21k or so of content.  However, when I clicked the Save button, I got:

image

(Unable to open this Internet site.  The requested site is either unavailable or cannot be found.  Please try again later.)  

I fired up Fiddler and and I was able to see the output, however.  It seems like there may be something happening in SP2010 that prevents owssvr.dll from transmitting its XML payload the way it wants.  Or, my SP2010 environment is just acting funny.

Thought it was interesting…

</end>

Subscribe to my blog.

Follow me on Twitter at http://www.twitter.com/pagalvin