Task: Autopopulate the Primary Contact when Account is selected and viceversa
Last updated on MAY 19, 2017
Applies to:Oracle Fusion Sales Cloud Service - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
On : 22.214.171.124.0 version, Activity Management
Customer has the following issue. On Activity object they have the following script added as a Before Insert:
def vo = newView('OrganizationProfile')
def vc = newViewCriteria(vo)
def vcr = vc.createRow()
def vci = vcr.ensureCriteriaItem('PartyId')
//fetch the account details
They are using this script for the following: whenever a task is created and an Account is added, then the Primary Contact of the account should be automatically populated;
This is not working for them when the account has no Primary Contact. In this scenario, when attempting to creating task, the following error occurs.
Attribute ContactId in ActivityContactEO is required;
In the Create task layout, whenever a task is created and the Account selected from the DCL, customer wants the Primary Contact of account to be auto-populated. Same goes the other way around (Primary Contact selected, Account to be auto-populated).
The issue can be reproduced at will with the following steps:
1. SUI -> Activities -> Task -> Create Task
The issue has the following business impact:
Due to this issue, users cannot create task, when script is added.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms