I have a custom CRM 2011 workflow which needs to know the current fiscal year. Currently I am just passing in an integer value (2012) for the condition operator, see below:
complianceRecordCondition.AttributeName = "new_complianceStartDate";
complianceRecordCondition.Operator = ConditionOperator.InFiscalPeriod;
complianceRecordCondition.Values.Add(2012);
What I need to do is, instead of adding 2012 in the values, I need to calculate/get the current fiscal year somehow and place that in the values.
Can anyone explain how I go about doing this?
Jack
I havn’t used the fiscal parts myself so I’m a little unfamiliar, but have you seen these other conditional operators?
They look closer to what you are trying to achieve, in particular
ThisFiscalYear.I would expect the filter to look a little more like this: