Skip to main content
I have a Visual Workflow Flow that creates a Task. I am having trouble setting the Task Due date from a parameter.

 

Everything works properly if I add a screen to the workflow and prompt the user for a date then use the Screen Input Field to set the Task Due date.  

 

The issue is that I don't want to prompt the user for a date because the date I need already exists on the Case screen that the flow was lauched from. I want to pass in a Parameter that contains a date instead of prompting the user to enter it.

 

I create a Variable with the Data Type Date, it is called varTaskDueDate.

 

I attempt to set the value of the variable by adding a parameter to the calling URL as below. The custom Case field !Case.Follow_Up_By__c is defined as a Date field.

 

/flow/CreateTask?VarWhatID={!Case.Id}&VarOwnerID={!Case.OwnerId}&VarWho={!Case.ContactId}&VarName={!Case.Action_Required__c}&VarTaskDueDate={!Case.Follow_Up_By__c}

 

The URL above gets the error below

 

Flow encountered an error when processing and converting between data types. Please check the flow and ensure all data types are matched correctly.

 

Salesforce Error ID: 1546368748-59310 (351512085)

 

I also tried using a DateValue conversion but this doens't work either. Same error.

 

/flow/CreateTask?VarWhatID={!Case.Id}&VarOwnerID={!Case.OwnerId}&VarWho={!Case.ContactId}&VarName={!Case.Action_Required__c}&VarTaskDueDate=DATEVALUE({!Case.Follow_Up_By__c})}

 

Does anyone know how to successfully pass a date field from an Object into a Visual Workflow as a parameter?

 

Thanks!
4 answers
  1. Mar 24, 2015, 6:47 AM
    Hi Jennifer

     

    Try this

    /flow/CreateTask?VarWhatID={!Case.Id}&VarOwnerID={!Case.OwnerId}&VarWho={!Case.ContactId}&VarName={!Case.Action_Required__c}&VarTaskDueDate={!TEXT(Case.Follow_Up_By__c)}

     

    Date value need to be passed in the format 'YYYY-MM-DD', and TEXT function will give you that.
0/9000