Redwoodユーザー・エクスペリエンスのOracle SalesでGroovyを使用してアカウントの親を設定するにはどうすればよいですか。
アカウントの親を設定するGroovyのサンプルを次に示します。
- オブジェクト : アカウント
- トリガー : 更新前
if(ParentAccount_Id_c != null)
{
def newParent = ParentParty
def row = newParent.createRow()
row.setAttribute('PartyId',ParentAccount_Id_c)
newParent.insertRow(row)
}