get //Request/CreatedTime inside Custom Workflow Activity RRS feed

  • Question

  • Hi,

    I have created a notification workflow that I run upon the change of a specific user attribute. The workflow contains an email notification action in which I want to send a notification about the change to a certain group.

    The e-mail template contains, amongst other things, the following:


    What I would like to do is access the //Request/CreatedTime inside a Custom Workflow activity (which would run before the email notification action) in order to grab the CreatedTime, change it to my timezone and place it in a Workflow parameter.

    something like:

                //Read the parameters
                foreach (CreateRequestParameter requestParameter in requestParameters)
                    if (requestParameter.PropertyName == "CreatedTime")
                        containingWorkflow.WorkflowDictionary.Add("CorrectRequestDate", <<do action with requestParameter.Value.ToString() here>>);

    However, the requestParameters does not seem to contain "CreatedTime", just the ones below:

    My Question: How would I be able to access (read) the CreatedTime parameter?

    Kind regards,
    Freek Berson
    The Microsoft Platform
    Wortell company website

    Thursday, June 14, 2012 10:41 AM


  • Where I have done this I created a dependency property of RequestType and after setting this to the current request you can access CurrentRequest.CreatedTime and CurrentRequest.CommittedTime directly.

    Bob Bradley (FIMBob @ ... now using Event Broker 3.0 @ for just-in-time delivery of FIM 2010 policy via the sync engine

    Saturday, June 16, 2012 5:02 AM