My Oracle Support Banner

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

Last updated on OCTOBER 24, 2018

Applies to:

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

Goal

On : 11.13.18.02.0 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= REV.next()
 def a=p.getAttribute('ProdGroupId')
  if( a == 100000000362696)
  {
  return true
  }
}
 
How to achieve this?
 

Solution

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
Goal
Solution
References


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