How to set Parent Account value via Groovy Script
**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:
Tagged:
0