My Oracle Support Banner

Workflow If Certain Product Group Is Used In Opportunity (Doc ID 2464328.1)

Last updated on DECEMBER 22, 2020

Applies to:

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


On : version, Opportunities

Workflow if certain product group is used in opportunity

Hello, I tried to create a workflow when a certain product group is entered into an opportunity.
Revnue lines are only possible to add in our case after creation so it must be a before update trigger. However I dont find any solution for isNew() on revenue line items. Below Script is used and it works fine but when I come back into the opportunity and change any value it fires again. Which is clear but I dont find any solution on how to ask if a new item was added.
Please help. thanks!

def REV=ChildRevenue
while (REV.hasNext()){
 def p=
 def a=p.getAttribute('ProdGroupId')
  if( a == 100000000362696)
  return true
How to achieve this?


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.