0
當我在創建聯繫人時從聯繫人中選擇帳戶時,顯示相同的錯誤並且無法創建任何聯繫人。 當一個新的聯繫人被插入了賬戶則拋出錯誤信息從聯繫人中選擇帳戶顯示錯誤並且無法創建任何聯繫人
trigger contacterror on Contact (before insert) {
for (contact cons : trigger.new){
if (cons.account==null){
cons.addError('Account nahi bana hai');
}
}
}
`
非常感謝你:) –