SharePoint Dragons

Nikander & Margriet on SharePoint

Tag Archives: sharepoint

Uploading files as attachments

The first time we’ve read a description of the SharePoint list attachment process and well worth your read: https://www.nothingbutsharepoint.com/sites/eusp/Pages/sharepoint-list-attachment-technical-brief.aspx

Determine the current user in a SPS 2010 workflow

What to do when you want to determine the current user in a workflow? It’s possible that the workflow runs inside the w3wp.exe worker process, in which case the current user makes sense. But it’s also possible that a workflow runs inside the owstimer.exe process, at a later time. In these cases, the current user doesn’t make sense. Instead, use the workflow originator or initiator.

To get the e-mail adress of the originator user:

workflowProperties.OriginatorUser.Email

Or

workflowProperties.OriginatorEmail

To get the display name of the originator user:

workflowProperties.Originator

Or

workflowProperties.OriginatorUser.Name

To get the login name (format [domain name]\[user name]:

workflowProperties.OriginatorUser.LoginName

These techniques can be used in workflows that are created programmatically. In a SPD (no-code) workflow, you can also retrieve the workflow initiator’s e-mail address: use the User Profile web service as a data form web part in the .aspx page of the workflow to get the e-mail address whenever the initiator started the workflow.

For ongoing work regarding workflow current user retrieval best practices, see: http://social.technet.microsoft.com/wiki/contents/articles/8044.sps-2010-best-practices-retrieving-the-current-user-in-a-workflow.aspx Thanks to http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/a5c5094c-5578-4e3c-83f2-62308f9f946f/ for the info.

What are the options for reusing PPS 2010?

If you want to reuse Performance Point Services 2010 in a non-SharePoint environment, there are a couple of options available:

  • The easiest way to reuse the UI would be via WSRP, but that’s not supported by PPS.
  • Screen scraping is another possibility, but that’s a hack.
  • You can <iframe> a dashboard, but then, the SharePoint UI is still visible.

PPS itself offers the following possibilities:

  • If you view a dashboard in the browser, it directly interacts with the BIMonitoringServiceApplicationProxy. The proxy communicates to the PPS shared service (a WCF service called BIMonitoringService.svc). You can try to leverage that.
  • If you’re creating a cuustom asp.net page you can talk to the rendering web service (PPSRenderingService.json) which eventually also talks to the BIMonitoringServiceApplicationProxy.
  • You can talk to the Authoring web service (PPSAuthoringService.asmx) that eventually also talks to the BIMonitoringServiceApplicationProxy.

And those are the options that are there for you.

Anonymous users submitting InfoPath forms

Just came across this interesting article that discusses how anonymous users can submit InfoPath forms in SharePoint 2010: http://claytoncobb.wordpress.com/2011/06/03/infopath-allowing-anonymous-users-to-submit-forms-in-sharepoint-2010/

What to do with historical data in custom lists?

  • If the historical data doesn’t take up much space, leave it in the original list.
  • Turn on versioning if you want to track the history of individual list items.
  • If the history involves different records, leave them in the list and sort the view on the date of the history with the most recent at the top.

Finally, the most common option: eventually archive the items to a different site collection in a different content database.

Follow the ongoing Wiki effort to discuss the best practices regarding this topic at: http://social.technet.microsoft.com/wiki/contents/articles/7999.sharepoint-2010-strategies-for-handling-historical-data-in-custom-lists.aspx

Expired SharePoint service account

Ooops, the password of the service account on our dev machine just expired. Running the solution: http://support.microsoft.com/kb/934838 and we’re back in business again!

Consuming multiple SharePoint lists in SSRS

Interesting article that discusses how to consume multiple (as opposed to the ootb 1) SharePoint lists at the same time within an SSRS report”: http://nikspatel.wordpress.com/2010/04/

SharePoint 2010: Tips for dealing with performance issues

Just created a Wiki page that contains an overview of tips for dealing with performance issues in a SharePoint environment: http://social.technet.microsoft.com/wiki/contents/articles/7926.sharepoint-2010-tips-for-dealing-with-performance-issues.aspx

Cama

An interesting tool for dragging and dropping files from your computer or Outlook to SharePoint: http://www.camasharepoint.com/

Features to activate – March 2012

We just updated the following Wiki page that contains an overview of features you need to activate before specific functionality is available:

http://social.technet.microsoft.com/wiki/contents/articles/7341.which-features-do-i-need-to-activate-in-sharepoint-2010-en-us.aspx