Get Child Accounts from Parent Account Record
Summary
Need to fetch list of child accounts from parent account record in groovyContent
Need to perform update on the child account whenever parent account attribute got an update. To perform that, need to fetch list of child accounts in groovy but the appendViewCriteria is giving an error. Please tell me a way to fetch child accounts or is there any other better way to perform the update operation on child accounts
Before Update Trigger:
def ParentId = PartyId
def OrgVo = newView('OrganizationProfile')
OrgVo.appendViewCriteria("ParentParty.first().PartyId = ${ParentId}") //also tried ParentParty.PartyId = ${ParentId}
OrgVo.executeQuery()
Tagged:
0