My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).
Showing posts with label Workflow. Show all posts
Showing posts with label Workflow. Show all posts

02 April 2013

Links List March 2013

I decided to share all my interesting reads and resources month by month with my blog readers. You can find these posts by searching on the label Links. I'll try to order the resources in logical categories. If you would like to see some interesting stuff added in the next month, don't hesitate to post a comment.

So this is my Links post for March 2013.

Dynamics AX

Supply Chain Management


Continue reading......

by Patrik Luca 1 comments

23 December 2008

Show ID field on the DispForm.aspx form page

Business requirement: Show ID field on the DispForm.aspx page


The ID field of a SharePoint list is not shown by default on the DispForm.aspx form page. This can be very annoying, especially in cases where an Issue Tracking list is used: most of the time business users want to see the ID for an Issue Tracking list item.


Solution: Create a shadow ID field


  1. Create a site column CopyID (Number, Number of decimal places: 0)
  2. Add the CopyID column to the site content type Issue.
  3. Create an Issue Tracking list.
  4. Open the site in which the Issue Tracking list is created with Microsoft Office SharePoint Designer.
  5. Start creating a new Workflow (File > New > Workflow) attached to the Issue Tracking list. Let the Workflow start automatically when a new Issue Tracking list item is created.



  6. Assign the value of the ID field to the CopyID field.

     
  7. Use the tool SharePoint Tips Utility Pack to change the rendering of the CopyId field on the form pages (for more information, see Hide list fields upon creation of a SharePoint list item): Show the CopyId field in the Display Form, but not in the New nor Edit Forms. Change the Field Name to ID.

     

Upon creation or editing a Issue Tracking list item, the ID field is not shown:

Upon displaying a Issue Tracking list item, the ID field is shown. In fact this ID field, is the previously named CopyId field, which receives the value automatically from the system ID field upon creation of a new Issue Tracking List item thanks to the previously created Workflow. We need to work with a shadow ID field, as it seems not possible to render the system ID field on the DispForm.aspx page, even not with the SharePoint Tips Utility Pack: it seems as if the properties to render it on a DispForm.aspx page don't work for the system ID field. That is why I've chosen here to use a shadow field.


Continue reading......

by Patrik Luca 9 comments

10 November 2008

Lookup user info in a Workflow

Business Requirement: Use the Name user property in an Email sent out by a Workflow


Suppose following scenario: you have created a site based on the Help Desk template, one of the Application Templates for Windows SharePoint Services 3.0. With Microsoft Office SharePoint Designer 2007, you have added a Workflow to the Service Requests list which sends out an email each time a service request is changed to the Service Representative.



Problem is that the user information in the email will be the Account, though you would prefer to have the Name in the email.



Solution: Use the Useful Sharepoint Designer Custom Workflow Activities solution


The Useful Sharepoint Designer Custom Workflow Activities solution adds some Workflow activities to the ones out of the box. One interesting activity is the one to lookup user info. This activity can be used to have the Name in the sent email in stead of the Account.

To achieve this, follow the next steps:
  1. Add the Useful Sharepoint Designer Custom Workflow Activities solution to the SharePoint solution store. A nice wizard will guide you through the setup process.

  2. Go to SharePoint Central Administration->Application Management->Manage Web Application Features and activate the Useful Sharepoint Designer Activities feature.

  3. In Microsoft Office SharePoint Designer 2007, open up your previously created Workflow (double-click the .xoml file).

  4. Add two variables UserNameServiceRep and UserNameModifiedBy to your Workflow: it will be used to store the Name of both user accounts in the Workflow.



  5. Add two Lookup site user property Actions (this is an Action which is added by the solution Useful Sharepoint Designer Custom Workflow Activities) to the workflow before the Action Send an Email. Lookup the user property LinkTitle for the users Service Representative and Modified By. Store the values in the previously created Workflow variables UserNameServiceRep and UserNameModifiedBy.



  6. Edit the body of the Email as such that the content of the previously created variables is used in stead of the content of the fields in the Service Request.



  7. Click the Finish button in the Workflow wizard: a new version for your Workflow will be created.


If you now edit a Service Request, you'll have the Name nicely in the sent Email in stead of the Account. In the same way you could add other User Information fields to the sent out Email.


Continue reading......

by Patrik Luca 6 comments

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

08 April 2008

Fill field by default with current user

Business requirement: how to fill a field by default with the current user?


Having set up the Help Desk template (one of the 40 application templates), my end-users asked if the field Customer could be filled up by default with the user creating the service request. The Customer field should only be filled up by default if the creator of the service request didn't fill out a value himself. The option should left open for the end-user to create a service request for somebody else: in such a case the end-users still needed to be able to fill out a value themselves (being the login of the colleague for whom they were submitting a service request).

Solution: use a workflow to set the default user to the current user


Part 1: Set customer column not required



  1. Set the column setting Require that this column contains information to No.



Part 2: Create a workflow to set the default user to the current user



  1. Create a new workflow in Microsoft Office SharePoint Designer 2007: File->New->Workflow.

  2. Give a name for the workflow, attach it to the Service Requests SharePoint list and check the option Automatically start this workflow when a new item is created.

  3. Check for the condition If Customer is empty

  4. As Action choose Set Field in Current Item

    1. Choose the field Customer.

    2. For the value, choose User who created current item (it will be translated by Microsoft Office SharePoint Designer 2007 to Service Requests:Created By.



  5. Click Finish


Continue reading......

by Patrik Luca 5 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