What format is it expecting even if I wanted to hardcode it? is it mm/dd/yyyy hh:mm:ss ??
I am assuming once I add the property I will have to hand edit the xoml to look something like this?
<crm:SplendidSequentialWorkflow x:Name="Workflow1" WORKFLOW_ID="00000000-0000-0000-0000-000000000000" xmlns:crm="clr-namespace:SplendidCRM;Assembly=SplendidCRM" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> <crm:ContactActivity x:Name="Contacts1" WORKFLOW_ID="{ActivityBind Workflow1,Path=WORKFLOW_ID}" AUDIT_ID="{ActivityBind Workflow1,Path=AUDIT_ID}" CURRENT_DATE="{ActivityBind Workflow1,Path=CURRENT_DATE}" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> <crm:WorkflowLogActivity x:Name="Contacts1_Log" MODULE_TABLE="CONTACTS" WORKFLOW_ID="{ActivityBind Workflow1,Path=WORKFLOW_ID}" /> <CodeActivity x:Name="Contacts1_LoadByAUDIT_ID" ExecuteCode="{ActivityBind Contacts1,Path=LoadByAUDIT_ID}" /> <crm:SetValueActivity x:Name="Contacts1_StatusDt1" LVALUE="{ActivityBind Contacts1,Path=StatusDT}" RVALUE=CURRENT_DATE OPERATOR="equals" /> <CodeActivity x:Name="Contacts1_Save" ExecuteCode="{ActivityBind Contacts1,Path=Save}" /> </crm:ContactActivity> </crm:SplendidSequentialWorkflow>
If you create the current date field in the SplendidWorkflow class, then you can just refer to it in the RVALUE. The LVALUE should point to the custom field in the Contacts1 activity. The SetValueActivity should handle the DateTime data type, or convert it to text if necessary, but there is no way to set the text format.
Is StatusDT the correct custom field name? I was expecting it to end in _C as do all custom fields in SplendidCRM.
<crm:SplendidSequentialWorkflow x:Name="Workflow1" WORKFLOW_ID="00000000-0000-0000-0000-000000000000" xmlns:crm="clr-namespace:SplendidCRM;Assembly=SplendidCRM" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> <crm:ContactActivity x:Name="Contacts1" WORKFLOW_ID="{ActivityBind Workflow1,Path=WORKFLOW_ID}" AUDIT_ID="{ActivityBind Workflow1,Path=AUDIT_ID}" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml/workflow"> <crm:WorkflowLogActivity x:Name="Contacts1_Log" MODULE_TABLE="CONTACTS" WORKFLOW_ID="{ActivityBind Workflow1,Path=WORKFLOW_ID}" /> <CodeActivity x:Name="Contacts1_LoadByAUDIT_ID" ExecuteCode="{ActivityBind Contacts1,Path=LoadByAUDIT_ID}" /> <crm:SetValueActivity x:Name="Contacts1_StatusDt1" LVALUE="{ActivityBind Contacts1,Path=StatusDT}" RVALUE="{ActivityBind Workflow1,Path=CURRENT_DATE}" OPERATOR="equals" /> <CodeActivity x:Name="Contacts1_Save" ExecuteCode="{ActivityBind Contacts1,Path=Save}" /> </crm:ContactActivity> </crm:SplendidSequentialWorkflow>