Conversion Map, Create At + 2 days

Posted by ByronB on 12-Nov-2014 09:37

Hi, I have created a conversion map to create a Task from an Opportunity object. When mapping the fields there is a due date field, I would like the due date to be the Opportunities Create Date + 3 days. How would I achieve this via the expression?

All Replies

Posted by pvorobie on 12-Nov-2014 11:21

You can map Opportunity Create Date into Due date, then use trigger to shift Due date by 2 or 3 days.

Posted by Godfrey Sorita on 12-Nov-2014 11:41

Hi Byron,

You can also create a formula(date) field on your source object and use the code below:

var dueDate = new Date('{!due_date}');
return dueDate.setDate(dueDate.getDate() + 3);

Then, use the formula in mapping Opportunity Create Date field.



This thread is closed