Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
How to set Parent Account value via Groovy Script — 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

How to set Parent Account value via Groovy Script

Accepted answer
in Sales 1 comment

**This post was created as part of a How to Service Request (SR)


Summary of the question:

We need to set Parent Account via Groovy Script on Account Object.

The value is not set with the new value.

Could you provide the KM how to update Parent Account using groovy, please?

Object : Account

Trigger : Before Update

if(ParentAccount_Id_c != null)


def newParent = ParentParty

def row = newParent.createRow()




Supporting Documents if any:

Howdy, Stranger!

Log In

To view full details, sign in.


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