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

Groovy Script to delete Account related address line

Accepted answer
in Sales 1 comment

Summary: If Opportunity Status is set to Lost, then we want to delete the address line in associated Account based on the location ID on related object that matched with the address location ID of Account.

Based on the Account that is associated to the Opportunity, we are pulling address lines and we are storing the Account Address in a custom related object (Opportunity Account Address) on opportunity.

We have a field on "Opportunity Account Address" object and if user select the checkbox "Select Address To Be Sent" field, then that address line Location ID we will pick and we will have to delete that address from Account.

Howdy, Stranger!

Log In

To view full details, sign in.


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