My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

25 September 2008

How to trigger a workflow based on a non-empty Comments field?

At an installation where I created a helpdesk functionality based on the Help Desk template, one of the Application Templates for Windows SharePoint Services 3.0, I was asked to create a workflow which sends out an email automatically when a comments is added to a service request. The email may not be sent out if the comments added was empty.
I thought this wouldn't cause much of a problem and started creating the workflow with Microsoft Office SharePoint Designer 2007. The condition checked to evaluate if an email should be sent out was If Comments is not empty.


I created a service request, next edited it and entered a value for the Comments column. I received an email triggered by my workflow for this change, which was expected. I edited the same service request again, without entering a value for the Comments column. I received an email triggered by my workflow, which I didn't expected, as my Comments added was empty. I edited the service request again, entering a value for the Comments column, resulting in the expected reception of an email.


So apparently, the Comments column wasn't empty, even if you didn't enter a value for it upon editing the service request. I thought this had something to do with the fact that the Comments field was a Multiple lines of text type of information field with the property Append Changes to Existing Text set to Yes. But I had no idea why the workflow reacted on each change of a service request as if the Comments field wasn't empty. So I created another workflow which copied the value of the Comments field into another field. This other field had as type of information Single line of Text. I immediately understood why the workflow sent out an email each time: apparently there are <div> tags placed around each Comments field change. Not entering a value for the Comments field, nevertheless resulted in a value of <div></div>. So I changed my workflow to take this into account, and hey, no mails were sent out anymore if the end-user edited a service request without entering a value for the Comments field.


Continue reading......

by Patrik Luca 7 comments

24 September 2008

7 crucial points to check upon document conversion failure

Problems which may arise with document conversion


Microsoft Office SharePoint Server 2007 includes document-to-Web page conversion utilities that can convert Microsoft Office Word 2007 documents (with and without macros) into standard Web pages that can be published to an internal or external Web site.

Some problems or difficulties may arise though while setting or trying to use this document conversion functionality:

  • While converting a Microsoft Office Word 2007 document, you receive following error: Converting the document to a page failed. The converter framework returned the following error: CE_OTHER.
  • The Convert Document option is not available in the contextual menu for a document stored in a SharePoint Document Library.


Continue reading......

by Patrik Luca 2 comments

18 September 2008

Getting rid of logon prompts when opening Office documents

Problem description: You are prompted to enter your credentials each time you open a Microsoft Office document stored in a SharePoint document library


Each time you open a Microsoft Office document, you are prompted to enter your credentials again, even if you check the box remember my password. For non Microsoft Office documents, such as PDF files, you are not prompted to enter your credentials. The credentials prompt is not taken into account apparently: if you choose Cancel in the prompted window without entering your credentials, the Microsoft Office document is still opened.


Continue reading......

by Patrik Luca 2 comments

01 September 2008

Setting the trust level for newly installed Web Parts

Problem description: Request for the permission of type 'Microsoft.SharePoint.Security.
SharePointPermission, Microsoft.SharePoint.Security, Version=1


After installing a new SharePoint Web Part, it is not working and you get an error like Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.


Continue reading......

by Patrik Luca 2 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Categories

Recommended Books


Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List

Followers

Links