Workflow Rule for Creating a Referral Call When a New Lead is Created
This topic provides details of the workflow rule and action that you must configure so that a task is automatically created when a lead record a saved for the first time. A referral call is created. It is scheduled on the next working day after the lead is created. For example, if the lead is created on a Friday or Saturday, the call is scheduled for the following Monday. The owner of the task is the owner of the lead record.
Workflow Rule Details
This topic describes the details of the workflow rule.
Record Type
The record type is a Lead record.
Trigger Event
The trigger event is When New Record Saved.
Rule Condition
Not applicable. Leave this section blank.
Workflow Action Details
This topic describes the details of the workflow action.
Action Type
The action type is Create Task.
Task Type
The task type is a Referral Call.
Due Date
The Due Date field contains a numeric value that is calculated by adding the value in this field to the date on which the task is created.
Enter the following expression in the Due Date field:
IIf((IfNull(Mid(1.0 * JulianDay(Today()+1)/7, 8, 1), "0")>="7"),IIf((IfNull(Mid(1.0 * JulianDay
(Today()+1)/7, 8, 1), "0")="7"),Today()+3,Today()+2),Today()+1)
Subject
The subject field contains the subject line for the task. You can embed functions and field names in the text. Three percent signs (%%%) before and after an embedded function or field name indicate that it is to be converted to a string.
For more information about expressions, see Oracle CRM On Demand Online Help.
Enter the following expression in the Subject field:
%%%LookupValue("TODO_TYPE", "Referral Call")%%%-%%%JoinFieldValue('<Lead>',[<LeadId>],
'<LeadFullName>')%%%