unable to remove revenue lines using groovy — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

unable to remove revenue lines using groovy

in Sales 5 comments

Summary:

We want to delete revenue line using groovy scripting when a new revenue line is added for the same Opportunity.

Scenario is: For example we have an Opportunity and it has 3 revenue lines where Product Groups as "A, B @& C" and we have custom field called "Group Number" with blank value.

Later when user added one more revenue line with Product Group as "A" and at this time user updated "Group Number" as "1234". we want to delete the existing revenue line where the "Product Group" is "A" and "Group Number" is blank.

We added below script at "AfterTransactionPosted " at "Opportunity Revenue"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!