Saturday 4 August 2012

SharePoint 2010 Approval Workflow email - Date Issue


Issue:

In SharePoint 2010. When we use OOTB approval workflow on a content type.
If we have set the duration for the due date as n days.
We receive two mails,
1.       For approver, that the task is allocated. This mail contain the correct date.
2.       For the initiator, that the approval has started. This mail contains the wrong date.



Solution

Got an work around and was able to resolve this issue :)
1.       I have customized the default SharePoint Approval workflow using SharePoint designer.
2.       There is a step for the email to the initiator.
3.       I have added a new step above it to calculate the due date, because the due date calculated initially by the logic always returned Null value (None). Added an action to calculate date

4.       Used the variable on the email template






 5.   Initially the date on the email template was “None” so the output was coming to be 01/01/0001
6.       Now after inserting the new variable we are getting the expected output

2 comments:

  1. If only these images were clearer, this is the solution I am looking for!!! please upload clearer images...I can't see the actual text of the logic.

    ReplyDelete
    Replies
    1. Please use the zoom of the browser. it seems the site has made it look unclear

      Delete