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
2
Views
1
Comments
in Sales 1 comment

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

Release:

11.13.22.04.0

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()

row.setAttribute('PartyId',ParentAccount_Id_c)

newParent.insertRow(row)

}


Supporting Documents if any:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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