Activities Should Not Be Created In Non Working Days And Weekends

(Doc ID 2104364.1)

Last updated on FEBRUARY 08, 2016

Applies to:

Oracle Fusion Sales - Version and later
Information in this document applies to any platform.


Activities are created in Non working days and weekends

Reproducible Steps

1. Log into Fusion Applications

2. Create appointment on lead or opportunity screen using below trigger

if (isAttributeChanged('Call1_c') && Call1DateTime_c!=null && Call1_c == 'Customer Not Reachable' )
def oNow = Call1DateTime_c;
def oNowSec = oNow.time;
def oNowSecPlus1 = oNowSec + (3*60*60*1000);
def oNowPlus1 = new Date(oNowSecPlus1);
def voActivity = newView('Activity')
def vcActivity = voActivity.createRow()
def apptName = 'Reminder Call 2 for Lead - ' + Name
vcActivity.setAttribute('Subject', apptName)
vcActivity.setAttribute('ActivityTypeCode', 'CALL')
vcActivity.setAttribute('ActivityFunctionCode', 'APPOINTMENT')
vcActivity.setAttribute('ActivityStartDate', nvl(Call1DateTime_c,null))
vcActivity.setAttribute('ActivityEndDate', nvl(oNowPlus1,null))
vcActivity.setAttribute('LeadId', LeadId);

3. Whenever user changes the field Call1_c value as Customer Not Reachable An appointment will be created Duration will be now() to next three hours.

Due to this issue, users are able to create appointments on non working days and weekends


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms