Groovy Script to delete Account related address line
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.
Tagged:
0