get //Request/CreatedTime inside Custom Workflow Activity
-
יום חמישי 14 יוני 2012 10:41
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:
<p>Date:[//Request/CreatedTime]</p>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
Twitter
Linked-in
Wortell company website
כל התגובות
-
שבת 16 יוני 2012 05:02
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 @ http://thefimteam.com/) ... now using Event Broker 3.0 @ http://www.fimeventbroker.com/ for just-in-time delivery of FIM 2010 policy via the sync engine
- הוצע כתשובה על-ידי UNIFYBobMVP יום רביעי 26 ספטמבר 2012 12:33
- סומן כתשובה על-ידי Markus VilcinskasMicrosoft Employee, Owner יום חמישי 14 מרץ 2013 09:46