How to copy the Activity Description on a Contact custom field using Groovy script?

(Doc ID 2188663.1)

Last updated on SEPTEMBER 30, 2016

Applies to:

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

Goal

 On Activity object > Contacts sub tab there are several Contacts associated to the Activity, next to each Contact there is a check box > the goal is to copy the Activity Description into a custom field on all Contacts that were checked using a button called Update Description.

The script will query the Contacts linked to that ActivityId (API) and update the Contact custom field only if the Contact check box is ticked.

Solution

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