Schedule Calls with Clients Where the Birthday Is Unknown, Is in the Current Week, or Is Not Within Six Months
This workflow rule is triggered when a producer updates the Call Frequency field on the contact (client) record to 1-2 Times/Year. If the birthday of the client is not known, or is within the current week, or is more than six months from now, the workflow rule creates a review call task to call the contact six months from now.
Workflow Rule Details
This topic describes the details of the workflow rule.
Record Type
The record type is a Contact record.
Trigger Event
The trigger event is When Modified Record Saved.
Rule Condition
The Workflow Rule Condition field contains the workflow rule condition.
Enter the following expression in the Workflow Rule Condition field:
[<CallFrequency>] <> IfNull(PRE('<CallFrequency>'),"Invalid") AND [<CallFrequency>]=LookupValue
('PROF_CALL_CLASS','1-2 Times/Year') AND IIf([<DateofBirth>] IS NOT NULL, ((JulianDay(IIf(JulianDay
(Mid([<DateofBirth>], 1, 6) + ToChar(Today(), 'YYYY')) < JulianDay(Today()), Mid([<DateofBirth>],
1, 6) + ToChar(Today()+Duration("P1Y"),'YYYY'),Mid([<DateofBirth>],1, 6) + ToChar(Today(),
'YYYY'))) > JulianDay(Today()+Duration("P6M"))) OR (JulianDay(IIf(JulianDay(Mid([<DateofBirth>],
1, 6) + ToChar(Today(), 'YYYY')) < JulianDay(Today()), Mid([<DateofBirth>],1,6) + ToChar(Today()
+Duration("P1Y"),'YYYY'),Mid([<DateofBirth>],1, 6) + ToChar(Today(), 'YYYY'))) <= JulianDay
(Today()+7))),1)
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 Review 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()+Duration("P6M"))/7, 8, 1), "0")>="7"),IIf((IfNull(Mid
(1.0 * JulianDay(Today()+Duration("P6M"))/7, 8, 1), "0")="7"),Today()+Duration("P6M")+2,Today()
+Duration("P6M")+1),Today()+Duration("P6M"))
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", "Review Call")%%%- %%%FieldValue('<ContactFullName>')%%%